tobias

Streams DEX trades on Ethereum as they happen, where DEX smart contract is 0xa43f…ec9f: buy amount, buy amount in USD, buy price in USD, buy currency name, buy currency symbol, buy smart contract, sell amount and 7 more fields.

By ziko_mode · saved 1 July 2024 · run 1 time · Bitquery API v2

What it returns

Filters

The subscription

subscription ($network: evm_network, $address: String!) {
  EVM(network: $network) {
    DEXTrades(where: {Trade: {Dex: {SmartContract: {is: $address}}}}) {
      Trade {
        Buy {
          Amount
          AmountInUSD
          PriceInUSD
          Currency {
            Name
            Symbol
            SmartContract
          }
        }
        Sell {
          Amount
          AmountInUSD
          Currency {
            Name
            Symbol
            SmartContract
          }
          PriceInUSD
        }
        Dex {
          SmartContract
        }
      }
      Transaction {
        Hash
      }
    }
  }
}

Variables

{
  "network": "eth",
  "address": "0xa43fe16908251ee70ef74718545e4fe6c5ccec9f"
}

Similar queries