query 1 trading API check

Returns the latest 150 pairs, where token ID is B6uecu…pump, market address is 8pVR83…Lyky and time duration is 1: block time, open, high, low, close and base.

By Divyasshree · saved 19 February 2026 · run 3 times · Bitquery API v2

What it returns

Filters

The query

query GetOHLCV($tokenId: String!, $market: String!, $duration: Int!, $limit: Int!) {
  Trading {
    Pairs(
      where: {Token: {Id: {is: $tokenId}}, Market: {Address: {is: $market}}, Interval: {Time: {Duration: {eq: $duration}}}, Price: {IsQuotedInUsd: false}}
      limit: {count: $limit}
      orderBy: {descending: Block_Time}
    ) {
      Block {
        Time
      }
      Price {
        Ohlc {
          Open
          High
          Low
          Close
        }
      }
      Volume {
        Base
      }
    }
  }
}

Variables

{
  "tokenId": "B6uecug9Z4ABKpaHYWjh6ikC9CsZYkZTNT5ZtSyQpump",
  "market": "8pVR838Emi6EytsjYh55GS1ywSGaT9S3F4kF1vtuLyky",
  "duration": 1,
  "limit": 150
}

Similar queries