tokens volume

Returns pairs, where time duration is 1: mean and sum of volume USD.

By Akshat · saved 23 February 2026 · run 3 times · Bitquery API v2

What it returns

Filters

The query

{
  Trading {
    Pairs(
      where: {
        Interval: {Time: {Duration: {eq: 1}}},
        Block: {Time: {since_relative: {hours_ago: 24}}},
        any:[{Token: {Id: {in: ["bid:solana:Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"]}}}, {QuoteToken: {Id: {in: ["bid:solana:Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"]}}}] 
      }
    ) {
      Price {
        Average {
          currentPrice: Mean(maximum: Block_Time)
          H1Ago: Mean(minimum: Block_Time, if: {Block: {Time: {since_relative: {hours_ago: 1}}}})
          H4Ago: Mean(minimum: Block_Time, if: {Block: {Time: {since_relative: {hours_ago: 4}}}})
          H24Ago: Mean(minimum: Block_Time, if: {Block: {Time: {since_relative: {hours_ago: 24}}}})
        }
      }
      v1h: sum(of: Volume_Usd, if: {Block: {Time: {since_relative: {hours_ago: 1}}}})
      v4h: sum(of: Volume_Usd, if: {Block: {Time: {since_relative: {hours_ago: 4}}}})
      v24h: sum(of: Volume_Usd)
    }
  }
}

Similar queries