Copy of Copy of Copy of Text OHCL data

Test OHLC data

Returns DEX trades on Ethereum and BNB Chain, where base currency is 0x3eC8…DF56, quote currency is 0xbb4c…095c and exchange name is Pancake or Pancake v2: minute, quote amount, quote price, minimum of block and maximum of block.

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

What it returns

Filters

The query

 {
  ethereum(network: bsc) {
    dexTrades(
      exchangeName: {in: ["Pancake", "Pancake v2"]}
      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