Pairs Cube API (get price of a token from a specific trading pair on a specific chain)

Returns the latest 10 pairs, where market address is 3ucNos…sUxv, market network is Solana and time duration is 30: protocol, network, market name, market address, start, duration, end and 19 more fields.

By Akshat · saved 26 September 2025 · Bitquery API v2

What it returns

Filters

The query

{
  Trading {
    Pairs(
      limit: {count: 10}
      orderBy: {descending: Block_Time}
      where: {Market: {Network: {is: "Solana"}, Address: {is: "3ucNos4NbumPLZNWztqGHNFFgkHeRMBQAVemeeomsUxv"}}, Interval: {Time: {Duration: {eq: 30}}}, Price: {IsQuotedInUsd: true}}
    ) {
      Market {
        Protocol
        Network
        Name
        Address
      }
      Interval {
        Time {
          Start
          Duration
          End
        }
      }
      Volume {
        Base
        Quote
        Usd
      }
      Price {
        Ohlc {
          Open
          High
          Low
          Close
        }
        IsQuotedInUsd
        Average {
          SimpleMoving
          WeightedSimpleMoving
          ExponentialMoving
          Estimate
          Mean
        }
      }
      Token {
        Name
        Symbol
        Address
      }
      QuoteToken {
        Name
        Symbol
        Address
      }
    }
  }
}

Similar queries