count

Returns DEX trades on Ethereum: count.

By Omkar_BQ · saved 3 November 2023 · run 1 time · Bitquery API v2

What it returns

The query

query MyQuery {
  EVM(dataset: combined, network: eth) {
    DEXTrades {
      buys:count(
        if: {Trade: {Buy: {Buyer: {is: "0xB54ce26f2E30F64c5b684b141311Ce138AB5E00E"}, Currency: {SmartContract: {is: "0x75C97384cA209f915381755c582EC0E2cE88c1BA"}}}}}
      )
      sells:count(
        if: {Trade: {Sell: {Seller: {is: "0xB54ce26f2E30F64c5b684b141311Ce138AB5E00E"}, Currency: {SmartContract: {is: "0x75C97384cA209f915381755c582EC0E2cE88c1BA"}}}}}
      )
    }
  }
}

Similar queries