trade

Streams DEX trades on Solana as they happen, where DEX program address is pAMMBa…fXEA, CPMMoo…KP1C or 6 more: block time, slot, transaction signature, signer, buy amount, buy currency mint address, buy price and 7 more fields.

By Michael x · saved 21 June 2025 · Bitquery API v2

What it returns

Filters

The subscription

subscription {
  Solana(network: solana) {
    DEXTrades(
      where: {Transaction: {Result: {Success: true}},Trade: {Dex: {ProgramAddress: {in: ["pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA","CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C","CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK","675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8","cpamdpZCGKUy5JxQXB4dcpGPiikHawvSWAd6mEn1sGG","LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo","Eo7WjKq67rjJQSZxS6z3YkapzY3eMj6Xy8X5EQVn5UaB","6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"]}}}}
      limitBy: {by: Block_Slot, count: 100000}
    ) {
      Block {
        Time
        Slot
      }
      Transaction {
        Signature
        Signer
      }
      Trade {
        Buy {
          Amount
          Currency {
            MintAddress
          }
          Price
          PriceInUSD
        }
        Sell {
          Amount
          Currency {
            MintAddress
          }
          Price
          PriceInUSD
        }
      }
      Instruction {
        Accounts {
          Address
        },
        Program {
            Address
        }
      }
    }
  }
}

Similar queries