Michael subscription 2

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

By Divyasshree · saved 8 May 2025 · Bitquery API v2

What it returns

Filters

The subscription

subscription {
  Solana(network: solana) {
    DEXTrades(where: {Trade: {Dex: {ProgramAddress: {in: ["pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA", "CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C", "CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK", "675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8"]}}}}, 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
        }
      }
    }
  }
}

Similar queries