OHLC of a token on Solana with pair

Returns 10 pairs, where quote token address is So1111…1112, market network is Solana and token ID is bid:solana:27G8MtK7VtTcCHkpASjSDdkWWYfoqT6ggEuKidVJidD4, sorted by interval time end, highest first: token name, token symbol, token address, token ID, quote token name, quote token symbol, quote token address and 18 more fields.

By Divyasshree · saved 21 October 2025 · Bitquery API v2

What it returns

Filters

The query

{
  Trading {
    Pairs(
      where: {Interval: {Time: {Duration: {eq: 1}}}, Price: {IsQuotedInUsd: false}, Market: {Network: {is: "Solana"}}, Token: {Id: {is: "bid:solana:27G8MtK7VtTcCHkpASjSDdkWWYfoqT6ggEuKidVJidD4"}}, Block: {Date: {is: "2025-10-21"}}, QuoteToken: {Address: {is: "So11111111111111111111111111111111111111112"}}}
      limit: {count: 10}
      orderBy: {descending: Interval_Time_End}
    ) {
      Token {
        Name
        Symbol
        Address
        Id
      }
      QuoteToken {
        Name
        Symbol
        Address
      }
      Market {
        Protocol
        Program
        Network
        Name
        Address
      }
      Block {
        Date
        Time
        Timestamp
      }
      Interval {
        Time {
          Start
          Duration
          End
        }
      }
      Volume {
        Base
        Quote
        Usd
      }
      Price {
        Ohlc {
          Close
          High
          Low
          Open
        }
      }
    }
  }
}

Similar queries