OHLC for a token

Aggregated Price of all tokens in real time on one chain in 1-second time period

By Kshitij Mahajan · saved 9 April 2026 · run 35 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 {
    Pairs(
      limit: {count: 10}
      orderBy: {descending: Block_Time}
      where: {Interval: {Time: {Duration: {eq: 1}}}, Token: {Address: {is: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"}}, Market: {Address: {is: "445fd6ffBZqWYsryCgs6wcE8exaLkRsMrefAQ5UHvt8v"}}}
    ) {
      Interval {
        Time {
          Start
          End
        }
      }
      Price {
        Ohlc {
          Open
          High
          Low
          Close
        }
      }
      Volume {
        Base
        Usd
      }
    }
  }
}

Similar queries