PEPE ETH OHLC Data

AAVE OHLC Data

Returns 10 DEX trades on Ethereum, where base currency is 0x6982…1933, quote currency is 0xc02a…6cc2 and time since 2022-01-01, sorted by time interval minute, highest first: minute, base currency name, quote currency name, quote amount, expression, quote price, minimum of block and maximum of block.

By Divyasshree N · saved 2 July 2023 · run 6 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: ethereum) {
    dexTrades(
      baseCurrency: {is: "0x6982508145454ce325ddbe47a25d4ec3d2311933"}
      quoteCurrency: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}
      time: {since: "2022-01-01", till: "2023-07-02T05:41:37.156Z"}
      options: {limit: 10, desc: "timeInterval.minute"}
    ) {
      timeInterval {
        minute(format: "%FT%TZ", count: 15)
      }
      baseCurrency {
        name
      }
      quoteCurrency {
        name
      }
      quoteAmount
      volume: quoteAmount(in: USD)
      wethPriceinUSD: expression(get: "volume / quoteAmount")
      high: quotePrice(calculate: maximum)
      low: quotePrice(calculate: minimum)
      open: minimum(of: block, get: quote_price)
      close: maximum(of: block, get: quote_price)
      highUSD: expression(get: "wethPriceinUSD * high")
      lowUSD: expression(get: "wethPriceinUSD * low")
      openUSD: expression(get: "wethPriceinUSD * open")
      closeUSD: expression(get: "wethPriceinUSD * close")
    }
  }
}

Similar queries