USDC All time high low template v1

Get All time high and low price of USDT (Tether) token on Ethereum network aggregated on multiple DEXs

By Divyasshree N · saved 7 July 2023 · run 6 times · Bitquery API v1

What it returns

Filters

The query

#This query retrieves dex trades for any currency against USDT in a particular timeframe
query myquery($network: EthereumNetwork, $from: ISO8601DateTime, $till: ISO8601DateTime, $quoteCurrency: String) {
  ethereum(network: $network) {
    dexTrades(
      baseCurrency: {is: "0xdac17f958d2ee523a2206206994597c13d831ec7"}
      quoteCurrency: {is: $quoteCurrency}
      time: {since: $from, till: $till}
      options: {limit: 10, desc: "timeInterval.month"}
    ) {
      timeInterval {
        month(format: "%FT%TZ", count: 12)
      }
      baseCurrency {
        name
      }
      quoteCurrency {
        name
      }
      high: quotePrice(calculate: maximum)
      low: quotePrice(calculate: minimum)
      open: minimum(of: block, get: quote_price)
      close: maximum(of: block, get: quote_price)
    }
  }
}

Variables

{
  "from": "2021-01-13T00:00:00Z",
  "till": "2023-06-20T00:00:00Z",
  "network": "ethereum",
  "quoteCurrency": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
}

Similar queries