Total buy vs sell volume in USD per token

Returns 100 trades, where market network is Solana, sorted by count, highest first: count, average of amounts in USD quote, sum of amounts in USD quote, pool address, market address, program, network and 7 more fields.

By Akshat · saved 7 April 2026 · Bitquery API v2

What it returns

Filters

The query

{
  Trading {
    Trades(
      limit:{count:100}
      orderBy: {descendingByField: "count"}
      where: {Block: {Time: {since_relative: {hours_ago: 1}}}, Pair: {Market: {Network: {is: "Solana"}}}}
    ) {
      count
      average_trade_size: average(of: AmountsInUsd_Quote)
      total_volume:sum(of:AmountsInUsd_Quote)
      buy_volume:sum(of:AmountsInUsd_Quote if:{Side:{is:"Buy"}})
      sell_volume:sum(of:AmountsInUsd_Quote if:{Side:{is:"Sell"}})
      Pair {
        Pool {
          Address
        }
        Market {
          Address
          Program
          Network
        }
        Token {
          Address
          Id
          IsNative
          Symbol
          TokenId
          Network
        }
        QuoteToken {
          Address
          Id
          IsNative
          Symbol
          TokenId
          Network
        }
      }
    }
  }
}

Similar queries