buy and sell by an address

all buy and sell by an address

Returns DEX trades on Ethereum, where transaction from is 0x8146…fc17 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, sell currency name and 2 more fields.

By Aleksey · saved 9 July 2025 · run 1 time · 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}
      Transaction: {From: {is: "0x8146EBf3C214595BF6B41982ff7de13A2435fc17"}}
      }
    ) {
      count
      bought: sum(of: Trade_Buy_Amount)
      sold: sum(of: Trade_Sell_Amount)
      Trade {
        Buy {
          Currency {
            Name
            Symbol
            SmartContract
          }
        }
        Sell {
          Currency {
            Name
            Symbol
            SmartContract
          }
        }
      }
        
    }
  }
}

Similar queries