24h historical price and historical volume on Solana

Historical data The Trading cube covers real time and roughly the last 30 days. For anything older, rebuild the same numbers from raw trades with DEXTradeByTokens. Datasets: https://docs.bitquery.io/docs/graphql/dataset/archive/ Retention: https://docs.bitquery.io/docs/graphql/data-coverage-retenti

By Divyasshree · saved 5 March 2026 · run 8 times · Bitquery API v2

What it returns

Filters

The query

# Historical data
#   The Trading cube covers real time and roughly the last 30 days. For
#   anything older, rebuild the same numbers from raw trades with
#   DEXTradeByTokens.
#
# Datasets:  https://docs.bitquery.io/docs/graphql/dataset/archive/
# Retention: https://docs.bitquery.io/docs/graphql/data-coverage-retention/
#

{
  Trading {
    Tokens(
      where: {Interval: {Time: {Duration: {eq: 1}}}, Block: {Time: {since_relative: {hours_ago: 24}}}, Token: {Id: {in: ["bid:solana:27G8MtK7VtTcCHkpASjSDdkWWYfoqT6ggEuKidVJidD4"]}}}
    ) {
      Currency {
        Id
        Name
        Symbol
      }
      Price {
        Average {
          currentPrice: Mean(maximum: Block_Time)
        }
      }
      v24h: sum(of: Volume_Usd)
    }
  }
}

Similar queries