test save

Returns 5 DEX trades by token on Solana: block hash, block date, currency name, currency symbol, currency mint address, trade amount, amount in USD and 6 more fields.

By Nadia · saved 17 December 2024 · Bitquery API v2

What it returns

The query

query{
    Solana {
    DEXTradeByTokens(
      limit: {count: 5}
    ) {
      Block{Hash
      Date
      }
      Trade {
            Currency{
              Name
              Symbol
              MintAddress


            }
        Amount(maximum: Block_Slot)
        AmountInUSD(maximum: Block_Slot)
        
      
      }
      pairs: uniq(of: Trade_Side_Currency_MintAddress)
      dexes: uniq(of: Trade_Dex_ProgramAddress)
      
      amount: sum(of: Trade_Amount)
      usd: sum(of: Trade_AmountInUSD)
      traders: uniq(of: Trade_Account_Owner)
      count
    }
    }
}

Similar queries