Trade amount by time

Returns DEX trades on Ethereum, where base currency is 0xdac1…1ec7, sorted by date date: date date, count, base amount and base currency symbol.

By Mann · saved 21 October 2021 · run 1 time · 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: count
      amount: baseAmount
      baseCurrency {
        symbol
      }
      contracts: count(uniq: smart_contracts)
      currencies: count(uniq: quote_currency)
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "ethereum",
  "token": "0xdac17f958d2ee523a2206206994597c13d831ec7",
  "from": null,
  "till": null,
  "dateFormat": "%Y-%m"
}

Similar queries