Rank1 OHLC Top Pair Candles

OHLC candles and volume for the top ranked pair of a token from the Trading Pairs cube

By Divyasshree · saved 14 October 2026 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query Rank1OHLC($network: String!, $mint: String!, $interval: Int!, $limit: Int!, $from: DateTime!) {
  Trading {
    Pairs(
      where: {
        Token: {Network: {is: $network}, Address: {is: $mint}}
        Ranking: {Position: {eq: 1}}
        Interval: {Time: {Duration: {eq: $interval}}}
        Block: {Time: {since: $from}}
      }
      orderBy: {descending: Block_Time}
      limit: {count: $limit}
    ) {
      Market {
        Name
        Address
      }
      Block {
        Time
        Timestamp
      }
      Interval {
        Time {
          Start
          Duration
          End
        }
      }
      Volume {
        Base
        Usd
      }
      Price {
        IsQuotedInUsd
        Ohlc {
          Open
          High
          Low
          Close
        }
      }
    }
  }
}

Variables

{"from": "2026-10-14T07:59:00.000Z", "interval": 60, "limit": 5000, "mint": "0xd7321801caae694090694ff55a9323139f043b88", "network": "Robinhood"}

Similar queries