AAVE OHLC gaps

Returns DEX trades on Ethereum, where base currency is 0x7fc6…dae9, quote currency is 0xC02a…6Cc2 and time after 2024-03-04, sorted by time interval minute, highest first: minute, base currency symbol, base currency address, quote currency symbol, quote currency address, count, quote price and 2 more fields.

By Sascha Mayr · saved 5 March 2024 · run 2 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: ethereum) {
    dexTrades(
      options: {desc: "timeInterval.minute"}
      time: {after: "2024-03-04T17:00:00Z"}
      baseCurrency: {is: "0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9"}
      quoteCurrency: {is: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"}
    ) {
      timeInterval {
        minute(count: 1)
      }
      baseCurrency {
        symbol
        address
      }
      quoteCurrency {
        symbol
        address
      }
      trades: count
      average_price: quotePrice(calculate: average)
      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