API Reference
/volatility Endpoint
Measure annualized volatility for currencies versus a base, or rank the liquid set by stability, with practical band guidance.
Endpoint
GET https://api.currency-core.com/v1/volatility
Measures how much a currency moves against a base: the annualized volatility of its daily returns over a window. Name one or more currencies to measure or compare them, or omit the currency to get a stability ranking of the liquid-currency set. This endpoint requires the Growth plan or higher.
Plan requirement
/v1/volatility uses the same historical-analytics entitlement as /history/analysis. Free and Starter keys receive HTTP 403 forbidden. Live keys require a paid plan.
Query parameters
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
currency | string | No | none | Currency to measure (3-letter ISO 4217), or a comma-separated list. Omit to rank the universe. currencies is accepted as an alias. Maximum 40 codes. |
base | string | No | USD | Base currency to measure against. |
from | string | No | 365 days before to | Window start YYYY-MM-DD (UTC). Must be a real date. |
to | string | No | Today (UTC) | Window end YYYY-MM-DD (UTC). Future dates clamp to today. |
sort | string | No | stable | Ranking direction: stable (least volatile first) or volatile. |
universe | string | No | liquid | Ranking universe: liquid (broad set) or majors (USD, EUR, GBP, JPY, CHF, CAD, AUD, NZD). |
limit | number | No | 10 | Ranking: how many to return. Maximum 50. |
sort and universe only affect ranking mode. In compare mode, results follow the order of the currencies you named, minus the base itself.
How it is calculated
Volatility is the sample standard deviation of daily returns, annualized over 365 calendar days, in percent (stdev × √365 × 100). The response’s basis is annualized-daily. The series is calendar-dense (gaps carried forward), so this is a consistent comparison figure rather than a trading-day (252) number. Lower means more stable.
A result can be null when there is not enough history in the window. In that case observations tells you how many returns were available, and note explains why.
Compare versus rank
Name currencies when you want a direct comparison: the response keeps the currencies you asked for and reports each one’s figure. Omit the currency when you want a ranking: the API scores the liquid or majors universe, sorts it by sort, and returns the top limit. Ranking mode is the faster way to answer “which currency is calmest?” without naming candidates first.
Choosing a window
One year is a reasonable default for recent conditions. Use a longer window when you want a structural comparison that is less sensitive to a single volatile month, and a shorter window when you are monitoring a current shock. Always report the window with the number: a volatility figure without its dates is hard to interpret.
Reading volatility bands
The API returns a percentage, not a labeled band. A useful interpretation is that the figure approximates a one-standard-deviation annual move: a volatility of 8 suggests roughly an 8% one-sigma move over a year, assuming the window is representative.
A common rule of thumb, not an API-defined threshold, is:
| Volatility | Rough reading |
|---|---|
| Under 5% | Very calm for a currency pair |
| 5% to 10% | Moderate, typical for many major pairs |
| 10% to 15% | Elevated |
| Above 15% | High, often an emerging-market or stressed currency |
Always compare figures measured over the same window, base, and universe. A 3-month window and a 5-year window are not directly comparable.
Response
{
"base": "USD",
"from": "2025-06-17",
"to": "2026-06-17",
"mode": "compare",
"basis": "annualized-daily",
"results": [
{ "currency": "EUR", "volatility": 6.42, "observations": 365 },
{ "currency": "GBP", "volatility": 7.88, "observations": 365 }
]
}
Response fields
| Field | Type | Description |
|---|---|---|
base | string | Base currency volatility is measured against. |
from | string | Window start used (YYYY-MM-DD, UTC). |
to | string | Window end used (YYYY-MM-DD, UTC). |
mode | string | compare when currencies were named, ranking when the universe was ranked. |
sort | string | Ranking direction, present in ranking mode. |
universe | string | Universe ranked, present in ranking mode. |
basis | string | Annualization basis, always annualized-daily. |
results | array | Per-currency volatility. |
results[].currency | string | The currency code. |
results[].volatility | number | Annualized volatility in percent; null when there is too little data. |
results[].observations | number | Number of daily returns used. |
results[].note | string | Why volatility is null, when applicable. |
Examples
Volatility of EUR and GBP against USD over the last year:
curl "https://api.currency-core.com/v1/volatility?currency=EUR,GBP&base=USD" \
-H "Authorization: Bearer cc_live_your_key"const res = await fetch(
"https://api.currency-core.com/v1/volatility?currency=EUR,GBP&base=USD",
{ headers: { Authorization: "Bearer cc_live_your_key" } },
);
const { results } = await res.json();
console.log(results[0].currency, results[0].volatility);import requests
res = requests.get(
"https://api.currency-core.com/v1/volatility",
params={"currency": "EUR,GBP", "base": "USD"},
headers={"Authorization": "Bearer cc_live_your_key"},
)
print(res.json()["results"])Most stable currencies against USD over 5 years (ranking):
curl "https://api.currency-core.com/v1/volatility?base=USD&sort=stable&limit=10&from=2021-11-11&to=2026-11-11" \
-H "Authorization: Bearer cc_live_your_key"
Most volatile major pair (ranking, majors only):
curl "https://api.currency-core.com/v1/volatility?base=USD&universe=majors&sort=volatile&limit=1" \
-H "Authorization: Bearer cc_live_your_key"
Errors
| Status | Code | When |
|---|---|---|
400 | invalid_input | Bad base, currency, sort, or universe; more than 40 currencies; from after to; span over 20 years; or the base has no history in the window. |
401 | unauthorized | The API key is missing or invalid. |
403 | forbidden | The plan is below Growth, the key is disabled, or billing is past due. |
429 | rate_limited | The per-minute rate limit was exceeded. Honor Retry-After. |
Limits and related
- Up to 40 named currencies per request.
- Ranking
limitis capped at 50. - The window cannot exceed 20 years.
- Each request consumes one monthly request and one per-minute rate-limit unit.
Related pages:
/v1/correlationto see which currencies move together/v1/drawdownfor peak-to-trough declines/v1/safe-havenfor a combined safety score- Pricing for Growth access
- Rate limits for per-minute limits