BIT2048 Pancakeswap OHLC

Returns 10 DEX trades on Ethereum and BNB Chain, where base currency is 0xbb4c…095c, quote currency is 0xe9e7…7d56 and exchange name is Pancake or Pancake v2, sorted by time interval minute: minute, base amount, base currency symbol, quote amount, quote currency symbol, quote price, minimum of block and maximum of block.

By Sayon · saved 20 June 2022 · run 3 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc){
    dexTrades(
      options: {limit: 10, asc: "timeInterval.minute"}
      time: {since: "2022-06-19T00:00:00Z"}
      baseCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}
      quoteCurrency: {is: "0xe9e7cea3dedca5984780bafc599bd69add087d56"}
      exchangeName: {in: ["Pancake", "Pancake v2"]}
    ){
      timeInterval{
        minute(count: 5)
      }
      baseAmount
      baseCurrency{
        symbol
      }
      quoteAmount
      quoteCurrency{
        symbol
      }
      quotePrice
      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)
    }
  }
}

Similar queries