Average price calculation every hour

Returns DEX trades on Ethereum and BNB Chain, where base currency is 0x55d3…7955, quote currency is 0xbb4C…095c and date after 2023-04-23: minute, quote price and expression.

By Divyasshree N · saved 26 April 2023 · run 4 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      baseCurrency: {is: "0x55d398326f99059fF775485246999027B3197955"}
      quoteCurrency: {is: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"}
      
      date: {after: "2023-04-23", before: "2023-04-25"}
    ) {
      timeInterval {
        minute(format: "%FT%TZ", count: 60)
      }
     
      sum_q: quotePrice(calculate:sum)
      expression(get: "sum_q/24")

    }
  }
}

Similar queries