get cryptocurrency by volatility

Returns currencies, where time duration is 3600, sorted by volatility, highest first: currency ID, average of price OHLC close, standard deviation of price OHLC close, calculate, start and end.

By Kshitij Mahajan · saved 5 November 2025 · run 3 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  Trading {
    Currencies(
      orderBy: {descendingByField: "volatility", descending: Interval_Time_Start}
      where: {Price: {IsQuotedInUsd: true}, Interval: {Time: {Duration: {eq: 3600}}}}
    ) {
      Currency {
        Id
      }
      average(of: Price_Ohlc_Close)
      standard_deviation(of: Price_Ohlc_Close)
      volatility: calculate(expression: "100 * ( $standard_deviation / $average )")
      Interval {
        Time {
          Start
          End
        }
      }
    }
  }
}

Similar queries