tv by pool

Returns pairs, where quote token ID is bid:solana:So11111111111111111111111111111111111111112, token ID is bid:solana:EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v and time start since 2025-10-02, sorted by interval time start: start, duration, token ID, token symbol, token name, quote token ID, quote token symbol and 8 more fields.

By Nadia · saved 3 April 2026 · run 3 times · Bitquery API v2

What it returns

Filters

The query

query TradingViewHistory($from: DateTime!, $to: DateTime!, $resolution: Int!, $tokenID: String!, $quoteTokenID: String!, $pool: 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}}}
    ) {
      Interval {
        Time {
          Start
          Duration
        }
      }
      Token {
        Id
        Symbol
        Name
      }
      QuoteToken {
        Id
        Symbol
        Name
      }
      Market {
        Id
        Name
      }
      Volume {
        Usd
      }
      Price {
        Ohlc {
          Open
          Close
          Low
          High
        }
      }
    }
  }
}

Variables

{
  "quoteTokenID": "bid:solana:So11111111111111111111111111111111111111112",
  "tokenID": "bid:solana:EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
  "pool": "Czfq3xZZDmsdGdUyrNLtRhGc47cXcZtLG4crryfu44zE",
  "from": "2025-10-02T08:02:26Z",
  "resolution": 60,
  "to": "2026-04-03T08:02:26Z"
}

Similar queries