ETH Last 5 DEX

all buy and sell by an address

Returns the latest 5 DEX trades on Ethereum, where buy currency smart contract is not 0xc02a…6cc2, 0x4200…0006 or 7 more, transaction from is 0x6b92…c094 and block date since 2024-01-01: count, sum of trade buy amount, sum of trade sell amount, buy currency name, buy currency symbol, buy smart contract and transaction value.

By HOD · saved 14 July 2025 · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(network: eth, dataset: archive) {
    DEXTrades(
      where: {Block: {Date: {since: "2024-01-01"}}, Trade: {Success: true, Buy: {Currency: {SmartContract: {notIn: ["0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", "0x4200000000000000000000000000000000000006", "0x265f640225f0331ede4bb61dd3938ac88fcd8f4e", "0xd9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca", "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913", "0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2", "0x532f27101965dd16442e59d40670faf5ebb142e4", "0x0b3e328455c4059EEb9e3f84b5543F74E24e7E1b", "0x489047739f35c31ecafe0c6979e4127049986abf"]}}}}, Transaction: {From: {is: "0x6b929d8bfffdcd8153a9631e700d28eb118ec094"}}}
      limit: {count: 5, offset: 0}
      orderBy: {descending: Block_Number}
    ) {
      count
      bought: sum(of: Trade_Buy_Amount)
      sold: sum(of: Trade_Sell_Amount)
      Trade {
        Buy {
          Currency {
            Name
            Symbol
            SmartContract(selectWhere: {})
          }
        }
      }
      Transaction {
        Value
      }
    }
  }
}

Similar queries