pair query test

Returns 10 pairs, where quote token address is So1111…1112, token address is 6p6xgH…GiPN and market network is Solana, sorted by interval time start, highest first: currency symbol, currency name, currency ID, block date, block time, timestamp, protocol and 26 more fields.

By Divyasshree · saved 14 August 2025 · run 3 times · Bitquery API v2

What it returns

Filters

The query

{
  Trading {
    Pairs(
      where: {Market: {Network: {is: "Solana"}}, Interval: {Time: {Duration: {eq: 5}}}, QuoteToken: {Address: {is: "So11111111111111111111111111111111111111112"}}, Token: {Address: {is: "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN"}}, Price: {IsQuotedInUsd: false}}
      limit: {count: 10}
      orderBy: {descending: Interval_Time_Start}
    ) {
      Currency {
        Symbol
        Name
        Id
      }
      Block {
        Date
        Time
        Timestamp
      }
      Market {
        Protocol
        Program
        Network
        Name
        Address
      }
      Token {
        Address
        Id
        Name
        Symbol
        TokenId
      }
      Volume {
        Usd
        Base
        Quote
      }
      QuoteToken {
        TokenId
        Name
        Id
        Address
        Symbol
      }
      QuoteCurrency {
        Id
      }
      Price {
        Ohlc {
          Open
          Low
          High
          Close
        }
        Average {
          WeightedSimpleMoving
          SimpleMoving
          Mean
          ExponentialMoving
        }
      }
      Interval {
        Time {
          End
          Start
        }
      }
    }
  }
}

Similar queries