volume based filtering

Returns 100 DEX trades by token on Solana, where DEX protocol name is pump, sorted by volume USD, highest first: currency name, currency symbol, currency mint address, protocol name, sum of trade side amount in USD and count.

By gaurav · saved 21 March 2025 · Bitquery API v2

What it returns

Filters

The query

{
  Solana {
    DEXTradeByTokens(
      orderBy: {descendingByField: "volumeUsd"}
      limit: {count: 100}
      where: {Trade: {Dex: {ProtocolName: {is: "pump"}}}, Transaction: {Result: {Success: true}}}
    ) {
      Trade {
        Currency {
          Name
          Symbol
          MintAddress
        }
        Dex {
          ProtocolName
        }
      }
      volumeUsd: sum(
        of: Trade_Side_AmountInUSD
        selectWhere: {gt: "10000", le: "20000"}
      )
      trades_count: count
    }
  }
}

Similar queries