Labrador retriever

Token volume on Uniswap

Returns DEX trades on Ethereum, where buy currency is 0x6b17…1d0f, date since 2021-01-01 and date till 2021-02-01, sorted by time interval day: day, count and trade amount.

By amaz_ng · saved 18 March 2021 · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $currency: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    dexTrades(
      buyCurrency: {is: $currency}
      date: {since: $from, till: $till}      
      options: {asc: "timeInterval.day"}
    ) {
      timeInterval {
        day(count: 1)
      }
count
tradeAmount(in:USD)
    }
  }
}

Variables

{
  "network": "ethereum",
  "currency": "0x6b175474e89094c44da98b954eedeac495271d0f",
  "from": "2021-01-01",
  "till": "2021-02-01"
}

Similar queries