Price of both the tokens in a single query

Streams DEX trades on Solana as they happen, where buy currency mint address is EPjFWd…Dt1v and sell currency mint address is JUPyiw…DvCN: transaction signature, buy amount, buy account address, buy amount in USD, buy currency mint address, buy currency symbol, buy price and 12 more fields.

By Akshat · saved 6 June 2024 · run 1 time · Bitquery API v2

What it returns

Filters

The subscription

subscription {
  Solana {
    DEXTrades(
      where: {Trade: {Buy: {Currency: {MintAddress: {is: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"}}}, Sell: {Currency: {MintAddress: {is: "JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN"}}}}}
    ) {
      Transaction {
        Signature
      }
      Trade {
        Buy {
          Amount
          Account {
            Address
          }
          AmountInUSD
          Currency {
            MintAddress
            Symbol
          }
          Price
          PriceInUSD
        }
        Market {
          MarketAddress
        }
        Dex {
          ProtocolName
          ProtocolFamily
          ProgramAddress
        }
        Sell {
          PriceInUSD
          Price
          Currency {
            MintAddress
            Symbol
          }
          Amount
          AmountInUSD
          Account {
            Address
          }
        }
      }
    }
  }
}

Similar queries