bscOHLC 11

Returns 1000 DEX trades on Ethereum and BNB Chain, where base currency is 0xbb4C…095c, quote currency is 0xe9e7…7d56 and exchange name is Pancake v2: second, quote price, minimum of block, maximum of block and trade amount.

By Vũ Hoàng Linh · saved 3 November 2022 · run 19 times · Bitquery API v1

What it returns

Filters

The query

query bscOHLC {
  ethereum(network: bsc) {
    dexTrades(
      options: {limit: 1000, descByInteger: "timeInterval.second"}
      exchangeName: {is: "Pancake v2"}
      baseCurrency: {is: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"}
      quoteCurrency: {is: "0xe9e7cea3dedca5984780bafc599bd69add087d56"}
    ) {
      timeInterval {
        second(count: 60)
      }
      maximum_price: quotePrice(calculate: maximum)
      minimum_price: quotePrice(calculate: minimum)
      open_price: minimum(of: block, get: quote_price)
      close_price: maximum(of: block, get: quote_price)
      tradeAmount(in: USD)
    }
  }
}

Similar queries