all buy and sell by an address

Returns DEX trades by token on Ethereum, where transaction from is 0x8146…fc17, side type is buy and block date since 2024-01-01: sender, currency name, currency symbol, smart contract, side currency name, side currency symbol, side smart contract and 2 more fields.

By gaurav · saved 9 July 2025 · run 3 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(network: eth, dataset: combined) {
    DEXTradeByTokens(
      where: {Block: {Date: {since: "2024-01-01"}}, Trade: {Side: {Type: {is: buy}}}, Transaction: {From: {is: "0x8146EBf3C214595BF6B41982ff7de13A2435fc17"}}}
    ) {
      Trade {
        Sender
        Currency {
          Name
          Symbol
          SmartContract
        }
        boughtCurrency: Side {
          Currency {
            Name
            Symbol
            SmartContract
          }
        }
      }
      bought: sum(of: Trade_Side_Amount, if: {Trade: {Side: {Type: {is: buy}}}})
      sold: sum(of: Trade_Amount)
    }
  }
}

Similar queries