Unique_Buyer_Seller

Returns DEX trades on Ethereum, where buy currency smart contract is 0xbe04…5bd6, sell currency smart contract is 0xbe04…5bd6 and block time since 2023-08-26: count.

By Omkar Acharekar · saved 31 August 2023 · run 3 times · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $token: String!) {
  EVM(network: $network, dataset: combined) {
    Unique_Buyers :DEXTrades(
      where: {Block: {Time: {since: "2023-08-26T01:00:00Z", till: "2023-08-28T23:00:00Z"}}, Trade: {Buy: {Currency: {SmartContract: {is: $token}}}}}
    ) {
      count(distinct: Trade_Buy_Buyer)
    }
    Unique_Sellers: DEXTrades(
      where: {Block: {Time: {since: "2023-08-26T01:00:00Z", till: "2023-08-28T23:00:00Z"}}, Trade: {Sell: {Currency: {SmartContract: {is: $token}}}}}
    ) {
      count(distinct: Trade_Sell_Seller)
    }
  }
}

Variables

{"network":"eth","token":"0xbe042e9d09cb588331ff911c2b46fd833a3e5bd6"}

Similar queries