tv history pairs

Returns pairs, where quote token ID is bid:solana:EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v, token ID is bid:solana:EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v and market name is jupiter, 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 24 November 2025 · Bitquery API v2

What it returns

Filters

The query

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

Variables

{
  "tokenID": "bid:solana:EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
  "quoteTokenID": "bid:solana:EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
  "marketName": "jupiter",
  "resolution": 60,
  "from": "2025-11-24T04:22:48Z",
  "to": "2025-11-24T09:51:48Z"
}

Similar queries