PancakeSwap OHLC Data (240min/4hr candle) GGG

Returns 100 DEX trades on Ethereum and BNB Chain, where base currency is 0x4b6f…95f0, 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 price and 4 more fields.

By Oliver · saved 14 September 2021 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: {limit: 100, desc: "timeInterval.minute"}
      date: {since: "2021-07-07"}
      exchangeName: {in: ["Pancake v2"]}
      baseCurrency: {is: "0x4b6fc700fb41ab5f6a7dfd2b88dc6159155695f0"}
      quoteCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}
    ) {
      timeInterval {
        minute(count: 240)
      }
      baseCurrency {
        symbol
        address
      }
      baseAmount
      quoteCurrency {
        symbol
        address
        
      }
      quotePrice
      quoteAmount
      trades: count
      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