TradingViewHistory Trading Pool Price

Returns pairs, where pool address is 0x46cf…a7c4, quote token ID is bid:bsc:0x55d398326f99059ff775485246999027b3197955 and token ID is bid:bsc:0x7130d2a12b9bcbfae4f2634d864a1ee1ce3ead9c, sorted by interval time start: close, high, low, open, start, duration, token ID and 11 more fields.

By Aleksey · saved 26 October 2026 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query TradingViewHistory($from: DateTime!, $to: DateTime!, $resolution: Int!, $tokenID: String!, $quoteTokenID: String!, $pool: String, $poolId: String) {
  Trading {
    Pairs(
      orderBy: {ascending: Interval_Time_Start}
      where: {Interval: {Time: {Duration: {eq: $resolution}, Start: {since: $from, till: $to}}}, QuoteToken: {Id: {is: $quoteTokenID}}, Token: {Id: {is: $tokenID}}, Pool: {Address: {is: $pool}, Id: {is: $poolId}}}
    ) {
      PoolPrice {
        Ohlc {
          Close
          High
          Low
          Open
        }
      }
      Interval {
        Time {
          Start
          Duration
        }
      }
      Token {
        Id
        Symbol
        Name
      }
      QuoteToken {
        Id
        Symbol
        Name
      }
      Volume {
        Usd
      }
      Supply {
        MarketCap
        TotalSupply
        FullyDilutedValuationUsd
      }
      Market {
        Name
        ProtocolFamily
      }
      Price {
        Ohlc {
          Open
          Close
          Low
          High
        }
      }
    }
  }
}

Variables

{
  "poolId": "",
  "quoteTokenID": "bid:bsc:0x55d398326f99059ff775485246999027b3197955",
  "tokenID": "bid:bsc:0x7130d2a12b9bcbfae4f2634d864a1ee1ce3ead9c",
  "pool": "0x46cf1cf8c69595804ba91dfdd8d6b960c9b0a7c4",
  "from": "2026-10-26T13:24:00Z",
  "resolution": 60,
  "to": "2026-10-26T13:36:01Z"
}

Similar queries