Docs / Endpoints
Volatility
POST/v1/volatilityunits: 3intraday
Realised volatility with five estimators (close-to-close, Parkinson, Garman-Klass, Rogers-Satchell, Yang-Zhang) over several windows, the volatility cone with today’s percentile in each window, and a regime label.
Add "async": true to run it as a job, and "webhook_url" to be called when it finishes (Jobs & async). Calls estimated above 1,000 units run as jobs automatically. Supports interval for intraday bars at 5× the units (Intraday).
Parameters
| Field | Type | Default | Description |
|---|---|---|---|
symbolrequired | string | — | Ticker. |
windows | array of integer | [10, 20, 60, 120, 252] | Rolling windows in bars, 5–1000, up to 8. |
start_date | date | — | YYYY-MM-DD. First date of the history behind the cone. Default: all history. |
end_date | date | — | YYYY-MM-DD. Last date to include. Default: the latest bar. |
interval | string | "1day" | "1day" | "1hour" | "30min" | "15min" | "5min" | "1min". Intraday costs 5× the units; see Intraday. |
Example request
Is TSLA's volatility high right now? Read the walkthrough →
POST /v1/volatility{ "symbol": "TSLA" }
The same call with curl, Python and JavaScript
curl https://clickapis.com/v1/volatility \
-H "Authorization: Bearer $CLICKAPIS_KEY" \
-H "Content-Type: application/json" \
-d '{"symbol":"TSLA"}'import os, requests
r = requests.post(
"https://clickapis.com/v1/volatility",
headers={"Authorization": f"Bearer {os.environ['CLICKAPIS_KEY']}"},
json={
"symbol": "TSLA"
},
timeout=60,
)
print(r.json()["data"])const r = await fetch("https://clickapis.com/v1/volatility", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.CLICKAPIS_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"symbol": "TSLA"
}),
});
console.log((await r.json()).data);Example response
{ "ok": true, "data": { "symbol": "TSLA", "start": "2010-06-29", "end": "2026-11-12", "bars": 4120, "bars_per_year": 250.7, "windows": [ 10, 20, 60, 120, 252 ], "current": [ { "window": 10, "close_to_close": 0.754305, "parkinson": 0.472522, "garman_klass": 0.428458, "rogers_satchell": 0.394994, "yang_zhang": 0.554482 }, { "window": 20, "close_to_close": 0.612004, "parkinson": 0.412069, "garman_klass": 0.39186, "rogers_satchell": 0.383247, "yang_zhang": 0.516491 }, { "window": 60, "close_to_close": 0.479585, "parkinson": 0.339485, "garman_klass": 0.330533, "rogers_satchell": 0.328476, "yang_zhang": 0.422426 }, { "window": 120, "close_to_close": 0.52733, "parkinson": 0.378312, "garman_klass": 0.367169, "rogers_satchell": 0.359946, "yang_zhang": 0.44762 }, { "window": 252, "close_to_close": 0.461851, "parkinson": 0.366544, "garman_klass": 0.363679, "rogers_satchell": 0.359381, "yang_zhang": 0.431765 } ], "cone": [ { "window": 10, "observations": 4110, "min": 0.104911, "p25": 0.341365, "median": 0.464325, "p75": 0.614385, "max": 1.996197, "current": 0.754305, "current_percentile": 0.860584 }, { "window": 20, "observations": 4100, "min": 0.156814, "p25": 0.373309, "median": 0.491512, "p75": 0.625355, "max": 1.611011, "current": 0.612004, "current_percentile": 0.729268 }, { "window": 60, "observations": 4060, "min": 0.246871, "p25": 0.423395, "median": 0.512703, "p75": 0.629707, "max": 1.280984, "current": 0.479585, "current_percentile": 0.392857 }, { "window": 120, "observations": 4000, "min": 0.286579, "p25": 0.44013, "median": 0.52164, "p75": 0.650677, "max": 1.02623, "current": 0.52733, "current_percentile": 0.51525 }, { "window": 252, "observations": 3868, "min": 0.31547, "p25": 0.460516, "median": 0.552871, "p75": 0.625766, "max": 0.902314, "current": 0.461851, "current_percentile": 0.252585 } ], "regime": { "label": "elevated", "vol_20": 0.612004, "percentile_20": 0.729268, "median_20": 0.491512, "term_ratio": 1.633222, "term_structure": "rising", "term_windows": [ 10, 252 ] }, "notes": [ "Annualised decimals (0.25 = 25%). Estimators: close_to_close, parkinson (high/low), garman_klass (OHLC), rogers_satchell (drift-free OHLC), yang_zhang (adds overnight gaps).", "cone: distribution of the rolling close-to-close volatility for each window over the history requested; current_percentile = share of past values <= today's.", "regime: today's 20-bar close-to-close volatility percentile in its own history: very low (<20%), low (<40%), normal (<60%), elevated (<80%), high.", "term_ratio: shortest-window / longest-window close-to-close volatility." ], "interval": "1day" }, "meta": { "op": "volatility", "units": 3, "cost_usd": 0.0, "billing": "internal", "free_call": false, "free_calls_left": 0, "balance_usd": 5.0, "ms": 15, "interval": "1day", "data_as_of": "2026-11-12", "partial_last_bar": false } }
Every response has the same envelope: ok, data and meta (op, units, cost_usd, ms, interval, billing, balance_usd, data_as_of, partial_last_bar). Numbers are decimals (0.05 = 5%), dates ISO, and a value that cannot be computed is null.