subscribe to dex trades on ethereum mainnet

Streams DEX trades on Ethereum as they happen: block time, block number, transaction hash, signature name, signature signature, log index, smart contract and 21 more fields.

By gaurav · saved 28 May 2025 · run 1 time · Bitquery API v2

What it returns

The subscription

subscription MyQuery {
  EVM(network: eth mempool:true) {
    DEXTrades {
      Block {
        Time
        Number
      }
      Transaction {
        Hash
      }
      Call {
        Signature {
          Name
          Signature
        }
      }
      Log {
        Index
        SmartContract
        Signature {
          Signature
          Name
        }
      }
      Trade {
        Sender
        Buy {
          Buyer
          AmountInUSD
          Amount
          Seller
          PriceInUSD
          Price
          Currency {
            Name
            Symbol
            SmartContract
          }
        }
        Dex {
          SmartContract
          ProtocolName
          ProtocolVersion
        }
        
        Sell {
          Buyer
          AmountInUSD
          Amount
          Seller
          PriceInUSD
          Price
          Currency {
            Name
            Symbol
            SmartContract
          }
        }
      }
    }
  }
}

Similar queries