OHLC data for after given time

Returns 500 DEX trades on Ethereum and BNB Chain, where base currency is 0xb7b2…dac6, exchange name is Pancake or Pancake v2 and time since 2021-05-11, sorted by time interval minute, highest first: minute, transaction hash, base currency symbol, base currency address, base amount, quote currency symbol, quote currency address and 5 more fields.

By gaurav · saved 11 May 2021 · run 1 time · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(options: {limit: 500, desc: "timeInterval.minute"}, 
      time: {since:"2021-05-11T00:00:00"}
      exchangeName: {in: ["Pancake", "Pancake v2"]}, 
      baseCurrency: {is: "0xb7b262b0ac4939d8936685e20189d809bdb5dac6"}, 
     ) {
      timeInterval {
        minute(count: 10)
      }
      transaction{
        hash
      }
    
      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