Eth - transactions for multiple contracts

Streams DEX trades by token on Ethereum as they happen, where currency smart contract is 0xadd3…4234 or 0xccB3…bF10 and side currency smart contract is 0xC02a…6Cc2, sorted by block time: block time, trade amount, buyer, currency symbol, protocol name, smart contract, seller and 8 more fields.

By Natia Gelashvili · saved 20 February 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The subscription

subscription {
  EVM(network: eth) {
    DEXTradeByTokens(
      orderBy: {ascending: Block_Time}
      where: {Trade: {Currency: {SmartContract: {in: ["0xadd39272E83895E7d3f244f696B7a25635F34234", "0xccB365D2e11aE4D6d74715c680f56cf58bF4bF10"]}}, Side: {Currency: {SmartContract: {is: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"}}}}}
    ) {
      Block {
        Time
      }
      Trade {
        Amount
        Buyer
        Currency {
          Symbol
        }
        Dex {
          ProtocolName
          SmartContract
        }
        Seller
        PriceInUSD
        Side {
          Amount
          AmountInUSD
          Buyer
          Seller
          Currency {
            Symbol
          }
        }
      }
      Transaction {
        From
        Hash
      }
    }
  }
}

Similar queries