Daily WETH Trades

Returns DEX trades on Ethereum, where base currency is 0xc02a…6cc2, date since 2023-04-19 and date till 2023-04-26, sorted by date date: date date, count big int, base amount and base currency symbol.

By gaurav · saved 26 April 2023 · run 4 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $dateFormat: String!, $token: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    dexTrades(
      options: {asc: "date.date"}
      date: {since: $from, till: $till}
      baseCurrency: {is: $token}
    ) {
      date: date {
        date(format: $dateFormat)
      }
      trades: countBigInt
      amount: baseAmount
      baseCurrency {
        symbol
      }
      contracts: countBigInt(uniq: smart_contracts)
      currencies: countBigInt(uniq: quote_currency)
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "ethereum",
  "token": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
  "from": "2023-04-19",
  "till": "2023-04-26T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries