trading api check 2

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

By Divyasshree · saved 19 February 2026 · run 1 time · 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": 60,
  "limit": 150
}

Similar queries