test save

Returns 5 DEX trades by token on Solana: currency symbol, currency name, currency mint address, trade amount, amount in USD, unique of trade side currency mint address, unique of trade DEX program address and 4 more fields.

By Nadia · saved 17 December 2024 · Bitquery API v2

What it returns

The query

query{
    Solana {
    DEXTradeByTokens(
      limit: {count: 5}
    ) {
      Trade {
        Currency {
  Symbol
          Name
          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