kite-candles

Returns DEX trades on Ethereum and BNB Chain, where quote currency is 0xbb4C…095c, base currency is 0xf246…75fb and exchange name is Pancake v2: minute, quote price, minimum of block and maximum of block.

By kitecoin · saved 6 February 2022 · run 1 time · Bitquery API v1

What it returns

Filters

The query

query ($from: ISO8601DateTime, $to: ISO8601DateTime)
{
  ethereum(network: bsc) {
    dexTrades(
      exchangeName: {is: "Pancake v2"}, 
      quoteCurrency: {is: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"},
      baseCurrency: {is: "0xf246aadab91594ec5b474c5cd175a1cd159f75fb"},
      date: {since: $from, till: $to}) {      

      time: timeInterval {
         minute(count: 1)
      }
      high: quotePrice(calculate: maximum)
      low: quotePrice(calculate: minimum)
      open: minimum(of: block get: quote_price)
      close: maximum(of: block get: quote_price)
    }
  }
}

Variables

{
   "from":"2021-12-27",
  "till":null
}

Similar queries