count_trades

Returns DEX trades on Ethereum, where buy buyer is 0xB54c…E00E, buy currency smart contract is 0x75C9…c1BA and sell seller is 0xB54c…E00E: count.

By Omkar_BQ · saved 3 November 2023 · run 6 times · Bitquery API v2

What it returns

Filters

The query

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

Similar queries