dexswaps and nft trading activity for last 3 yrs

Returns DEX trades on Ethereum, where transaction from is 0x0F9D…2538: count.

By Akshat · saved 17 December 2025 · Bitquery API v2

What it returns

Filters

The query

query MyQuery($address: String) {
  EVM(network: eth, aggregates: yes, dataset: combined) {
    DEXTrades(
      where: {Block: {Time: {since_relative: {years_ago: 3}}}, Transaction: {From: {is: $address}}, TransactionStatus: {Success: true}}
    ) {
      dex_count_fungible: count(
        distinct: Trade_Dex_ProtocolName
        if: {Trade: {Buy: {Currency: {Fungible: true}}}}
      )
      dex_count_nonfungible: count(
        distinct: Trade_Dex_ProtocolName
        if: {Trade: {Buy: {Currency: {Fungible: false}}}}
      )
    }
  }
}

Variables

{
  "address": "0x0F9DFd170F6d3109F801F1475b11a9c135232538"
}

Similar queries