subscribe to dex trades on ethereum mainnet

Streams DEX trades on Ethereum as they happen: block time, transaction hash, buy buyer, buy amount in USD, buy amount, buy seller, buy price in USD and 16 more fields.

By Akshat · saved 9 October 2024 · run 40 times · Bitquery API v2

What it returns

The subscription

subscription MyQuery {
  EVM(network: eth) {
    DEXTrades {
      Block {
        Time
      }
      Transaction {
        Hash
      }
      Trade {
        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