oganrd

123123

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

By Andrei Zheglov · saved 3 March 2026 · Bitquery API v2

What it returns

Filters

The query

query {
  Solana(dataset: combined) {
    DEXTradeByTokens(
      orderBy: { descendingByField: "volumeUsd" }
      where: {
        Trade: {
          Account: { Owner: { is: "215nhcAHjQQGgwpQSJQ7zR26etbjjtVdW74NLzwEgQjP" } }
          Dex: { ProtocolName: { is: "pump" } }
        }
        Transaction: { Result: { Success: true } }
      }
      limit: { count: 50 }
    ) {
      Trade {
        Currency { MintAddress Name Symbol }
      }
      bought: sum(of: Trade_Amount, if: { Trade: { Side: { Type: { is: buy } } } })
      sold: sum(of: Trade_Amount, if: { Trade: { Side: { Type: { is: sell } } } })
      volume: sum(of: Trade_Amount)
      volumeUsd: sum(of: Trade_Side_AmountInUSD)
      trades: count
    }
  }
}
  

Similar queries