Query with outliers

Returns 1000 DEX trades on Ethereum, where base currency is 0x2b59…eb39, quote currency is 0xa0b8…eb48 and date since 2022-08-27, sorted by time interval hour: hour, base currency symbol, base currency address, base amount, quote currency symbol, quote currency address, quote amount and 4 more fields.

By Oz · saved 30 August 2022 · run 4 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: ethereum) {
    dexTrades(
      options: {limit: 1000, asc: "timeInterval.hour"}
      date: {since: "2022-08-27"}
      baseCurrency: {is: "0x2b591e99afe9f32eaa6214f7b7629768c40eeb39"}
      quoteCurrency: {is: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"}
      priceAsymmetry: {}
    ) {
      timeInterval {
        hour(count: 1)
      }
      baseCurrency {
        symbol
        address
      }
      baseAmount
      quoteCurrency {
        symbol
        address
      }
      quoteAmount
      trades: count
      quotePrice
      maximum_price: quotePrice(calculate: maximum)
      minimum_price: quotePrice(calculate: minimum)
      open_price: minimum(of: block, get: quote_price)
      close_price: maximum(of: block, get: quote_price)
    }
  }
}

Similar queries