DEX Protocol Stats by Date

Returns DEX trades on Ethereum, where DEX protocol name is seaport_v1.4, block date since 2023-05-02 and block date till 2023-05-09: block date and count.

By lukas · saved 28 December 2023 · run 7 times · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $from: String, $till: String, $protocol: String) {
  EVM(dataset: combined, network: $network) {
    DEXTrades(
      where: {Trade: {Dex: {ProtocolName: {is: $protocol}}}, Block: {Date: {since: $from, till: $till}}}
    ) {
      Block {
        Date
      }
      trades: count
      traders: count(distinct: Trade_Buy_Seller)
      contracts: count(distinct: Trade_Dex_Pair_SmartContract)
      currencies: count(distinct: Trade_Buy_Currency_SmartContract)
    }
  }
}

Variables

{
  "network": "eth",
  "from": "2023-05-02",
  "till": "2023-05-09",
  "protocol": "seaport_v1.4"
}

Similar queries