Price of multiple tokens on various dexes in a single subscription

Streams DEX trades by token on Solana as they happen, where currency mint address is JUPyiw…DvCN, 85VBFQ…QAmQ or 1 more and side currency mint address is EPjFWd…Dt1v: block time, trade amount, amount in USD, currency mint address, currency name, currency symbol, trade price and 11 more fields.

By Akshat · saved 7 June 2024 · run 4 times · Bitquery API v2

What it returns

Filters

The subscription

subscription {
  Solana {
    DEXTradeByTokens(
      where: {Trade: {Currency: {MintAddress: {in: ["JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN", "85VBFQZC9TZkfaptBWjvUw7YbZjy52A6mjtPGjstQAmQ", "EKpQGSJtjMFqKZ9KQanSqYXRcF8fBopzLHYxdM65zcjm"]}}, Side: {Currency: {MintAddress: {is: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"}}}}}
    ) {
      Block {
        Time
      }
      Trade {
        Amount
        AmountInUSD
        Currency {
          MintAddress
          Name
          Symbol
        }
        Price_against_side_currency: Price
        PriceInUSD
        Dex {
          ProgramAddress
          ProtocolFamily
          ProtocolName
        }
        Market {
          MarketAddress
        }
        Side {
          Account {
            Address
          }
          Amount
          AmountInUSD
          Currency {
            Name
            MintAddress
            Symbol
          }
        }
      }
    }
  }
}

Similar queries