USDC All time high low v1

AAVE OHLC Data

Returns 10 DEX trades on Ethereum and BNB Chain, where base currency is 0x55d3…7955, quote currency is 0xbb4c…095c and time since 2023-06-13, sorted by time interval hour, highest first: hour, base currency name, quote currency name, quote amount, expression, quote price, minimum of block and maximum of block.

By Divyasshree N · saved 6 July 2023 · run 1 time · Bitquery API v1

What it returns

Filters

The query

query myquery($network: EthereumNetwork, $from: ISO8601DateTime, $till: ISO8601DateTime, $baseCurrency: String, $quoteCurrency: String){
  ethereum(network: $network) {
    dexTrades(
      baseCurrency: {is: $baseCurrency}
      quoteCurrency: {is: $quoteCurrency}
      time: {since: $from, till: $till}
      options: {limit: 10, desc: "timeInterval.hour"}
    ) {
      timeInterval {
        hour(format: "%FT%TZ", count: 15)
      }
      baseCurrency {
        name
      }
      quoteCurrency {
        name
      }
      
      quoteAmount
      volume:quoteAmount
      wethPriceinUSD: expression(get: "volume / quoteAmount")
      high: quotePrice(calculate: maximum)
      low: quotePrice(calculate: minimum)
      open: minimum(of: block, get: quote_price)
      close: maximum(of: block, get: quote_price)

    }
  }
}

Variables

{
  "from": "2023-06-13T00:00:00Z",
  "till": "2023-06-20T00:00:00Z",
  "network":"bsc",
  "baseCurrency": "0x55d398326f99059ff775485246999027b3197955",
  "quoteCurrency": "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"
}

Similar queries