OHLC DATA

OHLC data to feed to trading view

Returns DEX trades on Ethereum, where base currency is 0x005d…af3c, quote currency is 0xC02a…6Cc2 and date after 2022-08-04: minute, quote amount, quote price, minimum of block and maximum of block.

By kibainu · saved 7 September 2022 · run 71 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: ethereum) {
    dexTrades(
      baseCurrency: {is: "0x005d1123878fc55fbd56b54c73963b234a64af3c"}
      quoteCurrency: {is: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"}
    date: {after: "2022-08-04T17:15:00Z",before: "2022-08-06T17:15:00Z"}

    ) {
      timeInterval {
        minute(format: "%FT%TZ", count: 15)
      }
      volume: quoteAmount(in: USD)
      high: quotePrice(calculate: maximum)
      low: quotePrice(calculate: minimum)
      open: minimum(of: block, get: quote_price)
      close: maximum(of: block, get: quote_price)
    }
  }
}

Similar queries