get swaps by pair address -eth -stream

Streams DEX trades on Ethereum as they happen, where DEX smart contract is 0x4d68…2bBD: block time, block number, transaction hash, transaction index, trade index, smart contract, protocol family and 23 more fields.

By Akshat · saved 4 February 2026 · Bitquery API v2

What it returns

Filters

The subscription

subscription {
  EVM(network: eth) {
    DEXTrades(
      where: {TransactionStatus: {Success: true}, Trade: {Dex: {SmartContract: {is: "0x4d68B530920D26c3b01C99fecC19e21011B72bBD"}}}}
    ) {
      Block {
        Time
        Number
      }
      Transaction {
        Hash
        Index
      }
      Trade {
        Index
        Dex {
          SmartContract
          ProtocolFamily
          ProtocolName
        }
        Buy {
          Amount
          AmountInUSD
          Buyer
          Seller
          Currency {
            Name
            SmartContract
            Fungible
            Symbol
            Decimals
          }
          Price
          PriceInUSD
        }
        Dex {
          SmartContract
          ProtocolName
          ProtocolFamily
        }
        Sell {
          Amount
          AmountInUSD
          Buyer
          Seller
          Currency {
            Name
            SmartContract
            Fungible
            Symbol
            Decimals
          }
          Price
          PriceInUSD
        }
      }
    }
  }
}

Similar queries