dex trades

Streams DEX trades on Solana as they happen, where DEX program address is 6EF8rr…wF6P or pAMMBa…fXEA: slot, block time, buy account address, buy account owner, buy amount, buy amount in USD, buy decimals and 40 more fields.

By gaurav · saved 2 July 2025 · Bitquery API v2

What it returns

Filters

The subscription

subscription {
  Solana {
    DEXTrades(
      where: {Transaction: {Result: {Success: true}},
        Trade: {Dex: {ProgramAddress: 
          {in: ["6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P", "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA"]}}}}
    ) {
      Block {
        Slot
        Time
      }
      Trade {
        Buy {
          Account {
            Address
            Owner
          }
          Amount
          AmountInUSD
          Currency {
            Decimals
            Fungible
            IsMutable
            MintAddress
            Name
            Native
            ProgramAddress
            Symbol
            TokenStandard
            UpdateAuthority
            Uri
          }
          Price
          PriceInUSD
        }
        Sell {
          Account {
            Address
            Owner
          }
          Amount
          AmountInUSD
          Currency {
            Decimals
            Fungible
            IsMutable
            MintAddress
            Name
            Native
            ProgramAddress
            Symbol
            TokenStandard
            UpdateAuthority
            Uri
          }
          Price
          PriceInUSD
        }
        Dex {
          ProgramAddress
          ProtocolFamily
          ProtocolName
        }
        Index
        Market {
          MarketAddress
        }
        PriceAsymmetry
      }
      Transaction {
        Fee
        FeeInUSD
        Index
        Signature
        Signer
      }
    }
  }
}

Similar queries