FX analytics API seven metrics, one request
Turn a rate feed into analysis: annualised volatility, Pearson correlation, drawdown, safe-haven behaviour and mean reversion. Seven analytics endpoints share the same key, quota and history store as the rest of the API. For deep dives, see the volatility API, correlation API and ranking API.
- endpoints
- 7
- fiat currencies
- 160
- recalculation
- Daily
- free / month
- 1,000
curl -G https://api.currency-core.com/v1/drawdown \
-H 'Authorization: Bearer YOUR_KEY' \
--data-urlencode 'currency=EUR' \
--data-urlencode 'base=USD' \
--data-urlencode 'from=2021-01-01' \
--data-urlencode 'to=2026-11-06'const url = new URL("https://api.currency-core.com/v1/drawdown");
url.search = new URLSearchParams({
currency: "EUR", base: "USD", from: "2021-01-01", to: "2026-11-06",
});
const res = await fetch(url, {
headers: { Authorization: `Bearer ${process.env.CURRENCYCORE_KEY}` },
});
if (!res.ok) throw new Error(`CurrencyCore ${res.status}`);
const { results } = await res.json();
console.log(results[0].maxDrawdownPct);import os, requests
res = requests.get(
"https://api.currency-core.com/v1/drawdown",
headers={"Authorization": f"Bearer {os.environ['CURRENCYCORE_KEY']}"},
params={"currency": "EUR", "base": "USD", "from": "2021-01-01", "to": "2026-11-06"},
timeout=15,
)
res.raise_for_status()
print(res.json()["results"][0]["maxDrawdownPct"])One key, one quota, one base URL. Compare plans →
What is an FX analytics API?
An FX analytics API computes risk and trend metrics from historical exchange rates instead of returning raw rates. CurrencyCore exposes seven analytics endpoints from one daily dataset: history analysis, PPP analysis, annualised volatility, Pearson correlation, drawdown, safe haven, and mean reversion. Every metric is calculated from the same series used by /v1/history, so results reconcile with the underlying rates. Analytics endpoints require the Growth plan or higher.
Last updated
- Base URL
- api.currency-core.com/v1
- Auth
- Bearer or x-api-key
- Endpoints
- 7 analytics routes
- Universe
- 160 fiat currencies
- Refresh
- Daily
- Volatility
- Annualised
- Correlation
- Pearson on daily returns
- Plans
- Growth and above
Drawdown, peak and recovery
Sample output from the drawdown endpoint. The full analytics suite is available on Growth and above.
| Currency | Max drawdown | Peak | Trough |
|---|---|---|---|
| EUR | -22.79% | 2021-01-06 | 2022-09-26 |
Sample output from /v1/drawdown for EUR against USD. A null recovery date means the pair had not regained its peak by the window end.
Built for production, not a demo
Every capability below is part of the same API, billed against the same quota.
One consistent methodology
Every metric is computed from the same daily series, so volatility and correlation agree with each other and with any chart you build from /v1/history.
Annualised volatility
Standard deviation of daily returns, scaled to a year. Rank a universe or compare two currencies over any window.
Correlation that answers a real question
Pearson correlation of daily returns over a chosen period, for hedging, basket construction or checking whether two exposures are really diversified.
Drawdown and recovery
Peak-to-trough decline and the recovery path, the figures a treasury desk needs before it sizes a position.
Safe-haven and mean reversion
Quantify how a currency behaves when equities sell off, and how far it has drifted from its moving average.
Callable by agents
Every analytics endpoint is exposed through the MCP server and can be composed in /v1/ai questions, so an agent can ask for the analysis rather than the raw series.
Every endpoint, documented
Base URL https://api.currency-core.com. Authenticate with a bearer token
or x-api-key. Download the
OpenAPI 3.1 contract for generated clients.
GET /v1/history/analysis Change %, volatility, high, low and drawdown for a window. Growth+
base- Currency the comparison is measured against. Defaults to USD.
currencies- Comma list to compare; omit to rank every currency.
from / to- Window dates, YYYY-MM-DD UTC. Defaults to the last 20 years.
period- Shorthand: 10y, 6m, 30d, ytd or max.
sort- Movers: strengthened (default) or weakened.
assetClass- Movers pool: fiat (default), metals or all.
limit- Movers: top N, default 10, maximum 200.
interval- Compare mode trend series: weekly, monthly or yearly.
stats- Include min, max and average. Defaults to true.
Status codes 400 invalid input · 401 missing or invalid key · 403 Growth plan required · 404 no data at window edge · 429 quota or rate limit
Full endpoint reference GET /v1/ppp/analysis PPP factor change across countries over a period. Growth+
countries- Alpha-3 list to compare; omit to rank all countries.
from / to- Window years. Defaults to the last 10 years.
period- Shorthand: 10y, 20y or max.
sort- Movers: increased (default) or decreased.
limit- Movers: top N, default 10, maximum 200.
stats- Include min, max and average. Defaults to true.
Status codes 400 invalid input · 401 missing or invalid key · 403 Growth plan required · 429 quota or rate limit
Full endpoint reference GET /v1/volatility Annualised volatility ranking for a currency universe. Growth+
currency- One currency or a comma list; omit to rank the universe.
base- Currency to measure against. Defaults to USD.
from / to- Window dates. Defaults to the trailing 365 days.
sort- Ranking: stable (default) or volatile.
universe- liquid (default) or majors.
limit- Ranking: default 10, maximum 50.
Status codes 400 invalid input · 401 missing or invalid key · 403 Growth plan required · 429 quota or rate limit
Full endpoint reference GET /v1/correlation Pearson correlation between two currencies. Growth+
base- Reference currency. Defaults to USD; a non-USD base is more meaningful.
currenciesrequired- One or more currencies to correlate with base (GBP,CHF).
from / to- Window dates. Defaults to the trailing 365 days. Maximum span 20 years.
Status codes 400 invalid input · 401 missing or invalid key · 403 Growth plan required · 429 quota or rate limit
Full endpoint reference GET /v1/drawdown Peak-to-trough drawdown over a period. Growth+
currency- One currency or a comma list; omit to rank the universe.
base- Currency to measure against. Defaults to USD.
from / to- Window dates. Defaults to the trailing 365 days.
sort- Ranking: deepest (default) or recovery.
universe- liquid (default) or majors.
limit- Ranking: default 10, maximum 50.
Example GET /v1/drawdown?currency=EUR&base=USD&from=2021-01-01
Status codes 400 invalid input · 401 missing or invalid key · 403 Growth plan required · 429 quota or rate limit
Full endpoint reference GET /v1/safe-haven Behaviour during risk-off windows. Growth+
currencies- Currencies to score (CHF,JPY); omit to rank the liquid pool.
base- Currency to measure against. Defaults to USD.
from / to- Window dates. Defaults to 2007-01-01 or 20 years before to.
limit- Default 10, maximum 50.
Status codes 400 invalid input · 401 missing or invalid key · 403 Growth plan required · 429 quota or rate limit
Full endpoint reference GET /v1/mean-reversion Deviation from a moving average. Growth+
currencies- Currencies to score (EUR,GBP); omit to rank the liquid set.
base- Currency to measure against. Defaults to USD.
from / to- Window dates. Defaults to roughly two years.
limit- Default 10, maximum 50.
Status codes 400 invalid input · 401 missing or invalid key · 403 Growth plan required · 429 quota or rate limit
Full endpoint referenceChoose the metric that answers the question
The analytics suite is not a menu of interchangeable numbers. Start with the decision, then pick the endpoint whose output answers it. Every row is available on Growth and above.
A treasury review usually starts with drawdown, not volatility. Volatility says how much a rate moved; drawdown says how far it fell from its peak and whether it recovered. Run /v1/drawdown for the exposure, then /v1/safe-haven for a named risk-off window.
The quick-start sample on this page asks for the worst peak-to-trough move in EUR/USD from January 2021 to November 2026. The response names the peak, the trough and whether the rate recovered. A null recovery date is information: the pair had not regained the peak by the window end.
| Method | Endpoint | Key parameters | Output | Plan |
|---|---|---|---|---|
| GET | /v1/history/analysis | base, currencies or period, sort, stats | Change %, strengthened %, min, max, average | Growth |
| GET | /v1/volatility | currency list, base, from, to, universe | Annualised volatility and observations per currency | Growth |
| GET | /v1/correlation | base, currencies, from, to | Pearson coefficient and overlapping observations | Growth |
| GET | /v1/drawdown | currency list, base, from, to | Max drawdown, peak, trough, recovery date and days | Growth |
| GET | /v1/safe-haven | currencies, base, crisis reference window | 0 to 100 score, volatility, drawdown, crisis return | Growth |
| GET | /v1/mean-reversion | currencies, base, from, to | 0 to 100 score, deviation, crossing rate, half-life | Growth |
| GET | /v1/ppp/analysis | countries or period, sort, stats | PPP factor change, start and end factor, projection flag | Growth |
Drawdown is computed on the quoted rate. A negative percentage means the quoted currency fell against the base. Recovery is the first date the rate regained the peak, or null.
From key to first response in three steps
Create an API key
Sign up and create a key in the dashboard. Free plans use a test key with the same dataset; live keys are available on paid plans. No credit card is required.
Make the request
Send a GET request with the key in the Authorization header. Plain JSON comes back.
Ship it
Parse the response, cache where it makes sense, and read the rate date before you store the figure.
Sample response
application/json{
"base": "USD",
"from": "2021-01-01",
"to": "2026-11-06",
"mode": "compare",
"results": [
{
"currency": "EUR",
"maxDrawdownPct": -22.79,
"peakDate": "2021-01-06",
"troughDate": "2022-09-26",
"recoveryDate": null,
"recoveryDays": null
}
]
} What teams build with it
Treasury and hedging
Rank exposure by realised volatility and size hedges against drawdown rather than a hunch.
Basket construction
Check pairwise correlation before adding a currency to a basket, so two positions are not the same trade twice.
Research and content
Publish volatility and correlation rankings that update daily, the query types that still earn clicks in finance search.
How it compares
Against a typical currency API at the same price point.
| Capability | CurrencyCore | Typical currency API |
|---|---|---|
| Analytics endpoints | 7 in one API | Rare or separate product |
| Methodology published | Yes, in the docs | Often a black box |
| Observations returned | With every metric | Sometimes |
| Plan gate | Growth at $29/month | Enterprise tier typical |
| Drawdown and recovery | Peak, trough and recovery date | Rare |
How the metrics are computed
All analytics are derived from the same daily rate series the history endpoint returns. The methodology is documented and the observation count is returned with every result, so you can reproduce it.
- Volatility: standard deviation of daily returns, annualised by √365.
- Correlation: Pearson correlation of aligned daily returns.
- Drawdown: peak-to-trough decline within the requested window.
- Observations: returned with every result so a short window is visible, not hidden.
Every figure on this page is reproducible from the documented source. See the API documentation for the response schema. Last updated .
Start free, scale when you ship
Every plan includes the MCP server and commercial-use rights, including Free. Full history starts on Starter; analytics and BYOK start on Growth.
Commercial use is allowed on every plan, including Free.
Questions developers ask
What analytics does the currency API provide?
Seven endpoints: history analysis (including movers rankings), volatility, correlation, drawdown, safe haven, mean reversion and PPP analysis. Each returns a computed result rather than a raw series.
How is volatility calculated?
The analytics suite uses the same calculation as the dedicated volatility endpoint: standard deviation of daily returns, annualised by the square root of 365. See the volatility API page for interpretation bands and window guidance.
Which plan includes analytics?
The analytics suite is available on Growth ($29/month) and above. Live rates, conversion and the last 30 days of history are available on the free plan.
Can I compare more than two currencies?
Yes. Volatility, drawdown, safe-haven and mean-reversion endpoints accept a currency list or a universe. Correlation takes one base plus a list of currencies and returns a coefficient for each, up to 25 codes per request.
Which endpoint should I use for a risk review?
Start with /v1/drawdown to size the worst peak-to-trough move, then /v1/volatility to compare day-to-day movement, and /v1/safe-haven when the question is how a currency behaved during a specific risk-off window. Each returns a computed result and its observation count.
Can I rank currencies by drawdown or volatility?
Yes. Omit the currency parameter to rank the liquid set, or pass universe=majors for the G10. Use sort=deepest or sort=recovery on drawdown, and sort=volatile or sort=stable on volatility. The limit defaults to 10 and caps at 50.
Add analytics to your rate feed
No credit card required.
Analytics on Growth and above. 1,000 requests/month free. No credit card required.