Net flow (buys - sells) per token symbol

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

By Akshat · saved 7 April 2026 · Bitquery API v2

What it returns

Filters

The query

{
  Trading {
    Trades(
      limit:{count:100}
      orderBy: {descendingByField: "net_flow"}
      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"}})
      buys:count(if:{Side:{is:"Buy"}})
      sells:count(if:{Side:{is:"Sell"}})
      net_flow:calculate(expression:"$buys -$sells")
      Pair {
        Pool {
          Address
        }
        Market {
          Address
          Program
          Network
        }
        Token {
          Address
          Id
          IsNative
          Symbol
          TokenId
          Network
        }
        QuoteToken {
          Address
          Id
          IsNative
          Symbol
          TokenId
          Network
        }
      }
    }
  }
}

Similar queries