Pancake OHLC - Missing Candles

Pancake OHLC but has missing candles

Returns 10000 DEX trades on Ethereum and BNB Chain, where base currency is 0x6507…cc97, quote currency is 0xbb4c…095c and exchange name is Pancake v2, sorted by time interval minute, highest first: minute, base currency symbol, base currency address, base amount, quote currency symbol, quote currency address, quote amount and 5 more fields.

By ChrisReichard · saved 26 May 2021 · run 3 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(options: {limit: 10000, desc: "timeInterval.minute"},
      time: {since:"2021-05-26T17:15:00"},
      exchangeName: {is: "Pancake v2"}, 
      baseCurrency: {is: "0x6507458bb53aec6be863161641ec28739c41cc97"},
      quoteCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}) {
      
      timeInterval {
        minute(count: 5)
      }

      baseCurrency {
        symbol
        address
      }
      baseAmount
      quoteCurrency {
        symbol
        address
      }
      quoteAmount
      
      tradeAmount(in: USD) 
      trades: count
      quotePrice
      
      maximum_price: quotePrice(calculate: maximum)
      minimum_price: quotePrice(calculate: minimum)
            median_price: quotePrice(calculate: median)

      open_price: minimum(of: block get: quote_price)
      close_price: maximum(of: block get: quote_price)
  
    }
  }
}

Similar queries