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

ParameterTypeRequiredDefaultNotes
currencystringNononeCurrency 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.
basestringNoUSDBase currency to measure against.
fromstringNo365 days before toWindow start YYYY-MM-DD (UTC). Must be a real date.
tostringNoToday (UTC)Window end YYYY-MM-DD (UTC). Future dates clamp to today.
sortstringNostableRanking direction: stable (least volatile first) or volatile.
universestringNoliquidRanking universe: liquid (broad set) or majors (USD, EUR, GBP, JPY, CHF, CAD, AUD, NZD).
limitnumberNo10Ranking: 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:

VolatilityRough 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

FieldTypeDescription
basestringBase currency volatility is measured against.
fromstringWindow start used (YYYY-MM-DD, UTC).
tostringWindow end used (YYYY-MM-DD, UTC).
modestringcompare when currencies were named, ranking when the universe was ranked.
sortstringRanking direction, present in ranking mode.
universestringUniverse ranked, present in ranking mode.
basisstringAnnualization basis, always annualized-daily.
resultsarrayPer-currency volatility.
results[].currencystringThe currency code.
results[].volatilitynumberAnnualized volatility in percent; null when there is too little data.
results[].observationsnumberNumber of daily returns used.
results[].notestringWhy 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"

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

StatusCodeWhen
400invalid_inputBad 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.
401unauthorizedThe API key is missing or invalid.
403forbiddenThe plan is below Growth, the key is disabled, or billing is past due.
429rate_limitedThe per-minute rate limit was exceeded. Honor Retry-After.
  • Up to 40 named currencies per request.
  • Ranking limit is capped at 50.
  • The window cannot exceed 20 years.
  • Each request consumes one monthly request and one per-minute rate-limit unit.

Related pages: