Candles pancakeswap testing

Candles pancakeswap testing by nosty

Returns DEX trades on Ethereum and BNB Chain, where exchange address is 0xcA14…0c73, base currency is 0x36BC…A847 and quote currency is 0xbb4C…095c, sorted by time interval minute, highest first: minute, base amount, quote amount, quote price, minimum of block, maximum of block and base currency name.

By edinson · saved 22 January 2022 · run 3 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: {desc: "timeInterval.minute"}
      date: {since: "2022-01-20T18:20:21.000Z", till: "2022-01-22T18:20:21.000Z"}
      exchangeAddress: {is: "0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73"}
      baseCurrency: {is: "0x36BC1F4D4Af21df024398150Ad39627FB2c8A847"}
      quoteCurrency: {is: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"}
      tradeAmountUsd: {gt: 20}
    ) {
      timeInterval {
        minute(format: "%FT%TZ", count: 10)
      }
      baseAmount
      volume: quoteAmount
      high: quotePrice(calculate: maximum)
      low: quotePrice(calculate: minimum)
      open: minimum(of: block, get: quote_price)
      close: maximum(of: block, get: quote_price)
      baseCurrency {
        name
      }
    }
  }
}

Similar queries