sss

Returns DEX trades by token on Ethereum, where pair smart contract is 0xc32C…1bE8 and block number is 18226636: count.

By Omkar Acharekar · saved 27 September 2023 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: combined, network: eth) {
    DEXTradeByTokens(
      where: {Trade: {Dex: {Pair: {SmartContract: {is: "0xc32C2d9768919DEaEE60F7eB163A293c6eb81bE8"}}}}, Block: {Number: {eq: "18226636"}}}
    ) {
      uniqbuyers: count(
        distinct: Trade_Buyer
        if: {Trade: {Currency: {SmartContract: {is: "0x356e17967206eFb413b60AB0Ba44E269063A26c9"}}}}
      )
      uniqsellers: count(
        distinct: Trade_Seller
        if: {Trade: {Currency: {SmartContract: {is: "0x356e17967206eFb413b60AB0Ba44E269063A26c9"}}}}
      )
      txncount: count(distinct: Transaction_Hash)
      NoofSell: count(
        if: {Trade: {Currency: {SmartContract: {is: "0x356e17967206eFb413b60AB0Ba44E269063A26c9"}}, Side: {Type: {is: buy}}}}
      )
      NoofBuy: count(
        if: {Trade: {Currency: {SmartContract: {is: "0x356e17967206eFb413b60AB0Ba44E269063A26c9"}}, Side: {Type: {is: sell}}}}
      )
    }
  }
}

Similar queries