solana trades subscription

Streams DEX trades on Solana as they happen: block time, slot, transaction signature, transaction index, success, buy amount, buy account address and 10 more fields.

By megi pegi · saved 11 July 2025 · Bitquery API v2

What it returns

The subscription

subscription tokenTrades($tokens: [String!]){
  Solana {
    DEXTrades(
      where: {
        any: [
          {Trade: {Buy: {Currency: {MintAddress: {in: $tokens}}}}},
          {Trade: {Sell: {Currency: {MintAddress: {in: $tokens}}}}}
        ]
      }
    ) {
      Block {
        Time
        Slot
      }
      Transaction {
        Signature
        Index
        Result {
          Success
        }
      }
      Trade {
        Buy {
          Amount
          Account {
            Address
          }
          Currency {
            MintAddress
            Symbol
            Name
          }
          Price
          PriceInUSD
        }
        Sell {
          Account {
            Address
          }
          Currency {    
            Symbol
            Name
          }
          Price
          PriceInUSD
        }
      }
    }
  }
}

Variables

{
  "tokens": [
    "FsHcS3xudEX9PSfcDBmGsAoEBaBnwwJrj7oLVkuJin2E"
  ]
}

Similar queries