Wallets PNL

DEX trades of multiple wallets for a certain token

Returns DEX trades by token on Ethereum, where currency smart contract is 0x2671…4cf1 and transaction from is 0x3c7e…75ac or 0x6a45…6f69: trade amount, price in USD, buyer, from and sender fee in USD.

By Euss · saved 17 May 2024 · run 156 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: archive, network: eth) {
    DEXTradeByTokens(
      where: {Trade: {Currency: {SmartContract: {is: "0x2671ef3e85fe0c8d8a7e434208ccc842455a4cf1"}}}, Transaction: {From: {in: ["0x3c7e7e5d95a154764e209e6bcac1f0653fee75ac", "0x6a4581f52138d9361f2cc6bf15f35226ecac6f69"]}}}
    ) {
      Trade {
        Amount
        PriceInUSD
        Buyer
      }
      Transaction {
        From
      }
      Fee {
        SenderFeeInUSD
      }
    }
  }
}

Similar queries