Kube ohlc

Test OHLC data

Returns DEX trades on Ethereum and BNB Chain, where base currency is 0x3ec8…df56 and quote currency is 0xbb4c…095c: minute, quote amount, quote price, minimum of block and maximum of block.

By gaurav · saved 26 July 2022 · run 11 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      baseCurrency: {is: "0x3ec8e004e9f71157b7ac7ccbed133939694edf56"}
      quoteCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}
    ) {
      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