Learn Quant Trading From an Open Source Book
Twelve months of daily moves: annualized volatility and worst session, eight namesranking ·
2026-08-02 · 8×3
US tickers trading in a June week, and how many still traded in June 2026ranking ·
2026-08-02 · 11×4
Average quoted spread by ET half hour: AAPL and KO, Friday July 17, 2026series ·
2026-08-02 · 16×3
Average distance from one session's close to the next session's open, monthlyseries ·
2026-08-02 · 24×4
Twelve months of daily moves: annualized volatility and worst session, eight names
Twelve months of daily moves: annualized volatility and worst session, eight names
| ticker | annualized_vol_pct | worst_day_pct |
|---|---|---|
| COIN | 68 | 13.34 |
| TSLA | 46.6 | 14.63 |
| NVDA | 36.5 | 6.22 |
| MSFT | 31.5 | 10.02 |
| AAPL | 25.8 | 7.44 |
| KO | 18.8 | 3.96 |
| JNJ | 18.4 | 3.65 |
| SPY | 12.7 | 2.69 |
the exact SQL behind every number
WITH daily AS (
SELECT ticker,
toDate(toTimeZone(window_start, 'America/New_York')) AS session,
argMax(close, window_start) AS session_close
FROM global_markets.delayed_stocks_minute_aggs
WHERE ticker IN ('SPY', 'KO', 'JNJ', 'MSFT', 'AAPL', 'NVDA', 'TSLA', 'COIN')
AND toDate(toTimeZone(window_start, 'America/New_York')) >= toDate('2025-08-01')
AND toDate(toTimeZone(window_start, 'America/New_York')) <= toDate('2026-07-31')
AND (toHour(toTimeZone(window_start, 'America/New_York')) * 60
+ toMinute(toTimeZone(window_start, 'America/New_York'))) BETWEEN 570 AND 959
GROUP BY ticker, session
),
rets AS (
SELECT ticker,
toFloat64(session_close) AS close_px,
toFloat64(lagInFrame(session_close) OVER (PARTITION BY ticker ORDER BY session)) AS prev_close
FROM daily
)
SELECT ticker,
round(stddevSamp(close_px / prev_close - 1) * sqrt(252) * 100, 1) AS annualized_vol_pct,
round(abs(min(close_px / prev_close - 1)) * 100, 2) AS worst_day_pct
FROM rets
WHERE prev_close > 0
GROUP BY ticker
ORDER BY annualized_vol_pct DESC
More from this analysisLearn Quant Trading From an Open Source Book
US tickers trading in a June week, and how many still traded in June 2026
ranking 11×4
→
Average distance from one session's close to the next session's open, monthly
series 24×4
→
Average quoted spread by ET half hour: AAPL and KO, Friday July 17, 2026
series 16×3
→
When market headlines publish, by New York clock hour
ranking 24×2
→
See all 2,173 queries →