Pancake OHLC data SAFEMOON-WBNB

Returns 100 DEX trades on Ethereum and BNB Chain, where base currency is 0x8076…d8d3, quote currency is 0xbb4c…095c and exchange name is Pancake, sorted by time interval minute: minute, base currency symbol, base currency address, base amount, quote currency symbol, quote currency address, quote amount and 4 more fields.

By Lei · saved 9 July 2021 · run 1 time · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(options: {limit: 100, asc: "timeInterval.minute"}, 
      date: {since:"2021-05-01"}
      exchangeName: {is: "Pancake"}, 
      baseCurrency: {is: "0x8076c74c5e3f5852037f31ff0093eeb8c8add8d3"}, 
      quoteCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}) {
      
      
      timeInterval {
        minute(count: 5)
      }

    
      baseCurrency {
        symbol
        address
      }
      baseAmount
      quoteCurrency {
        symbol
        address
      }
      quoteAmount
      
      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