modify_multiple_token

Returns DEX trades by token on Ethereum, where DEX smart contract is 0xc32C…1bE8, 0xa43f…ec9f or 1 more and currency smart contract is not 0xC02a…6Cc2: currency symbol, currency name, smart contract, count and sum of trade side amount.

By Omkar_BQ · saved 18 December 2023 · run 14 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: combined, network: eth) {
    DEXTradeByTokens(
      limitBy: {by: Trade_Dex_Pair_SmartContract}
      where: {Trade: {Dex: {SmartContract: {in: ["0xc32C2d9768919DEaEE60F7eB163A293c6eb81bE8", "0xa43fe16908251ee70ef74718545e4fe6c5ccec9f","0xc869d0764ecc6ac006578ea9c1f64908bef7d7c0"]}}, Currency: {SmartContract: {not: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"}}}}
    ) {
      Trade {
        Currency {
          Symbol
          Name
          SmartContract
        }
      }
      uniqbuyers: count(distinct: Trade_Buyer)
      uniqsellers: count(distinct: Trade_Seller)
      txncount: count(distinct: Transaction_Hash)
      noofsell: count(if: {Trade: {Side: {Type: {is: buy}}}})
      noofbuy: count(if: {Trade: {Side: {Type: {is: sell}}}})
      total_weth_buy_and_sold:sum(of: Trade_Side_Amount)
    }
  }
}

Similar queries