Buyside Sellside count

Returns DEX trades on Ethereum, where buy currency smart contract is 0xd0b3…1a3d, sell currency smart contract is 0xd0b3…1a3d and block date after 2023-08-01: count.

By Divyasshree N · saved 4 September 2023 · run 4 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: combined, network: eth) {
    
    ## count of addresses selling NOVA
    Trade_sell_buyer_count: DEXTrades(
      where: {Block: {Date: {after: "2023-08-01"}}, Trade: {Buy: {Currency: {SmartContract: {is: "0xd0b3a986fff305854a7238a8e099cce1ced01a3d"}}}}}
    ) {
      Trade_sell_buyer: count(distinct: Trade_Sell_Buyer)
    }
    
    ## count of addresses selling WETH
    Trade_Sell_seller_count: DEXTrades(
      where: {Block: {Date: {after: "2023-08-01"}}, Trade: {Sell: {Currency: {SmartContract: {is: "0xd0b3a986fff305854a7238a8e099cce1ced01a3d"}}}}}
    ) {
      Trade_Sell_buyer: count(distinct: Trade_Sell_Buyer)
    }
  }
}

Similar queries