LatestTrades

Real time price stream for tokens on solana

Streams DEX trades by token on Solana as they happen: block time, slot, block height, currency name, currency symbol, currency mint address, decimals and 23 more fields.

By guyasong · saved 19 July 2025 · Bitquery API v2

What it returns

The subscription

subscription LatestTrades($symbols: [String!], $sideSymbols: [String!], $amountMin: String!) {
  Solana {
    DEXTradeByTokens(
      where: {Transaction: {Result: {Success: true}}, Trade: {Currency: {MintAddress: {in: $symbols}}, Side: {AmountInUSD: {gt: $amountMin}, Currency: {MintAddress: {in: $sideSymbols}}}}}
    ) {
      Block {
        Time
        Slot
		Height
      }
      Trade {
        Currency {
          Name
          Symbol
          MintAddress
          Decimals
        }
        Price
        PriceInUSD
        Amount
        AmountInUSD
        Account {
          Address
          Token {
            Owner
          }
        }
        Side {
          Type
          Currency {
            Name
            Symbol
            MintAddress
            Decimals
          }
          Amount
          AmountInUSD
        }
        Dex {
          ProtocolName
          ProtocolFamily
          ProgramAddress
        }
        Market {
          MarketAddress
        }
        Index
      }
      Transaction {
        Signature
        Signer
        FeePayer
        Fee
        FeeInUSD
      }
    }
  }
}

Variables

{  
  "amountMin": "500"
  "symbols": ["zYrqA2qMegiyPwNPqbfaFp3wB7NQqdKJMEM3j9d8Vmu"]
  "sideSymbols":["", "So11111111111111111111111111111111111111112", "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB", "JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN", "EKpQGSJtjMFqKZ9KQanSqYXRcF8fBopzLHYxdM65zcjm"]
}

Similar queries