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 Nikhil · saved 10 July 2023 · run 2 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 ($token: String) {
  ethereum(network: ethereum) {
    dexTrades(
      baseCurrency: {is: $token}
      quoteCurrency: {is: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"}
      time: {since: "2021-01-13T00:00:00Z", till: "2023-06-20T00:00:00Z"}
      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

{
  "token": "0xdac17f958d2ee523a2206206994597c13d831ec7"
}

Similar queries