multiple trading pairs subscription

Streams pairs as they happen, where market address is 21vWZ5…Xvvi or 4juw4x…QPAY, market network is Solana and time duration is 60, sorted by block timestamp: token address, token ID, token name, token symbol, quote token address, quote token ID, quote token name and 23 more fields.

By gaurav · saved 1 August 2025 · Bitquery API v2

What it returns

Filters

The subscription

subscription($marketAddresses: [String!]) {
  Trading {
    Pairs(
      where: {
        Market: {
          Network: { is: "Solana" }
          Address: { in: $marketAddresses }
        }
        Interval: { Time: { Duration: { eq: 60 } } }
      }
      orderBy: { ascendingByField: "Block_Timestamp" }
    ) {
      Token {
        Address
        Id
        Name
        Symbol
        TokenId
      }
      QuoteToken {
        Address
        Id
        Name
        Symbol
        TokenId
      }
      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
        }
        Average {
          ExponentialMoving
          Mean
          SimpleMoving
          WeightedSimpleMoving
        }
      }
    }
  }
}

Variables

{
  "marketAddresses": ["21vWZ55AUqvnEPdt9euWMUZhmsmseAc3amK9jcSSXvvi","4juw4xub3RCSTKR4ZNevDQMkTmwuEpHdWMikLSUUQPAY"]
}

Similar queries