0x v4 trade count

Returns DEX trades on Ethereum, where protocol is Zerox Exchange v4, sorted by date date: date date and count.

By gaurav · saved 16 November 2021 · run 2 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $dateFormat: String!, $protocol: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    dexTrades(
      options: {asc: "date.date"}
      protocol: {is: $protocol}
      date: {since: $from, till: $till}
    ) {
      date: date {
        date(format: $dateFormat)
      }
      trades: count
      traders: count(uniq: takers)
      contracts: count(uniq: smart_contracts)
      currencies: count(uniq: buy_currency)
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "ethereum",
  "protocol": "Zerox Exchange v4",
  "from": null,
  "till": null,
  "dateFormat": "%Y-%m"
}

Similar queries