Currency correlation API measure how pairs actually move
Correlation is the difference between diversification and doubling a position. Get Pearson correlation of daily returns for any two currencies over any window, computed from the same history the rest of the API serves.
- daily returns
- Pearson
- window
- Any
- fiat currencies
- 160
- free / month
- 1,000
curl -G https://api.currency-core.com/v1/correlation \
-H 'Authorization: Bearer YOUR_KEY' \
--data-urlencode 'base=EUR' \
--data-urlencode 'currencies=GBP' \
--data-urlencode 'from=2025-11-06' \
--data-urlencode 'to=2026-11-05'const url = new URL("https://api.currency-core.com/v1/correlation");
url.search = new URLSearchParams({
base: "EUR", currencies: "GBP", from: "2025-11-06", to: "2026-11-05",
});
const res = await fetch(url, {
headers: { Authorization: `Bearer ${process.env.CURRENCYCORE_KEY}` },
});
const { results } = await res.json();import os, requests
res = requests.get(
"https://api.currency-core.com/v1/correlation",
headers={"Authorization": f"Bearer {os.environ['CURRENCYCORE_KEY']}"},
params={"base": "EUR", "currencies": "GBP", "from": "2025-11-06", "to": "2026-11-05"},
timeout=15,
)
print(res.json()["results"][0]["correlation"])One key, one quota, one base URL. Compare plans →
What is a currency correlation API?
A currency correlation API measures how two exchange-rate series move together. CurrencyCore computes Pearson correlation of daily returns for a base currency against up to 25 currencies over any window, using the same daily series as /v1/history. Results include the coefficient and the observation count, so a short or thin window is visible. The endpoint requires the Growth plan or higher.
Last updated
- Metric
- Pearson correlation
- Inputs
- Daily returns
- Base
- Any supported currency
- Window
- Any date range
- Max currencies
- 25 per call
- Output
- Coefficient + observations
- Plans
- Growth and above
- Free tier
- 1,000 requests/month
What the response tells you
Sample output. Values range from -1 (move in opposite directions) through 0 (no linear relationship) to +1 (move together).
| Pair A | Pair B | Correlation |
|---|---|---|
| EUR/USD | GBP/USD | 0.71 |
| AUD/USD | NZD/USD | 0.86 |
| USD/JPY | USD/CHF | -0.42 |
| USD/CAD | USD/MXN | 0.38 |
Illustrative values. The API returns the Pearson correlation of daily simple returns and the observation count for any window you ask for.
Built for production, not a demo
Every capability below is part of the same API, billed against the same quota.
Aligned daily returns
Both series are aligned on the same trading dates before the coefficient is computed, so a holiday in one market does not distort the result.
Any window you choose
Correlation is not stable. Ask for 30 days, one year or ten years and compare, instead of trusting a single long-run number.
Direction and strength together
The sign tells you direction, the magnitude tells you strength. Both are returned with the observation count so you can judge significance.
Pairs, baskets and hedging
Check whether two exposures are genuinely diversified, or whether a basket is one trade wearing three tickers.
Same data as the rest of the API
Correlation uses the same daily series as /v1/history, so a chart and a coefficient never disagree.
Agent-ready
The endpoint is exposed over MCP and can be composed into natural-language questions through /v1/ai.
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/correlation Pearson correlation between a base currency and each listed currency. 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.
Example GET /v1/correlation?base=EUR¤cies=GBP,CHF
Status codes 400 invalid input · 401 missing or invalid key · 403 Growth plan required · 429 quota or rate limit
Full endpoint reference GET /v1/history The daily series behind the calculation; Free covers the last 30 days. All plans
currencyrequired- One currency per call, 3-letter ISO 4217 (INR).
from- Start date, YYYY-MM-DD UTC. Defaults to 7 days before to.
to- End date, YYYY-MM-DD UTC. Defaults to today; future dates clamp.
base- Base currency. Defaults to USD.
interval- daily (default), weekly, monthly or yearly.
Status codes 400 invalid input · 401 missing or invalid key · 403 date outside Free window · 404 unknown currency · 429 quota or rate limit
Full endpoint reference GET /v1/history/analysis Volatility and drawdown for context. 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/volatility Rank a universe by realised volatility. 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 referencePairwise, rolling and easy to over-read
The correlation endpoint is pairwise by design. You ask for a base and a list of currencies, and it returns one coefficient per currency. A full matrix is a loop over bases, not a separate endpoint.
With base=EUR and currencies=GBP,CHF,SEK you get one row of the matrix: EUR against each listed currency. Repeat with base=GBP for the next row. Each call accepts up to 25 codes, and a custom window can span 20 years. A 10-currency matrix is 10 calls and 45 unique pairs, so cache the results.
Correlation is a regime statistic, not a constant. A 30-day window reacts to stress, a one-year window is steadier, and a five-year window can hide a recent break. Run all three and compare. When short and long windows diverge, treat the relationship as unstable.
A worked EUR/GBP check makes the point. From the committed annual closes for 2016 to 2025, the correlation of EUR/USD and GBP/USD annual close returns is about 0.80; restricted to 2021 to 2025 it is about 0.82. The API computes Pearson correlation on daily returns, so its coefficient over the same decade will differ. Correlation is window-dependent, so measure it on the return series and window you care about rather than treating any single long-run number as the answer.
| Correlation | Rough reading |
|---|---|
| 0.8 to 1.0 | Strong positive: tends to move together |
| 0.4 to 0.8 | Moderate positive |
| -0.4 to 0.4 | Weak or no clear linear relationship |
| -0.8 to -0.4 | Moderate negative |
| -1.0 to -0.8 | Strong negative: tends to move opposite |
Caveats: Pearson measures linear co-movement only; correlation is not causation; readings are window-specific; short windows are noisy; pegged or managed currencies can show near-zero correlation by construction. With base=USD the base series is constant, so the endpoint returns null and a note asking for a non-USD base.
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": "EUR",
"from": "2025-11-06",
"to": "2026-11-05",
"results": [
{ "currency": "GBP", "correlation": 0.71, "observations": 252 }
]
} What teams build with it
Hedging
Two positively correlated exposures do not hedge each other. Check the coefficient before you size the second position.
Portfolio diversification
Select currencies that move independently, rather than a basket that behaves like one currency with extra steps.
Risk reporting
Track how correlation shifts during stress, when diversification is most needed and least reliable.
How it compares
Against a typical currency API at the same price point.
| Capability | CurrencyCore | Typical currency API |
|---|---|---|
| Correlation endpoint | Built in | Rare |
| Aligned trading dates | Yes | Left to the caller |
| Observation count returned | Yes | Sometimes |
| Matrix workflow | One call per base row | Single matrix call or manual loop |
| Non-USD base guidance | Null plus an explanatory note | Silent null |
How correlation is calculated
Daily returns are computed for both currencies, aligned on common trading dates, then correlated with the Pearson coefficient. The window and observation count are returned so the result is reproducible.
- Returns: daily returns, not price levels.
- Alignment: only dates where both series have an observation.
- Coefficient: Pearson, range -1 to +1.
- Observations: returned with every result.
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 does currency correlation mean?
It measures how two exchange rates move together. A coefficient near +1 means they tend to move in the same direction, near -1 means opposite directions, and near 0 means no consistent linear relationship.
Which correlation method is used?
Pearson correlation of daily returns, aligned on common trading dates over the requested window.
Is correlation stable over time?
No, which is why the endpoint accepts a window. Compute 30-day, one-year and five-year coefficients and compare them before relying on a single figure.
Which plan includes correlation?
Correlation is part of the analytics suite on Growth ($29/month) and above.
Can I correlate a currency against a basket?
The endpoint takes one base and a list of currencies, so a basket comparison is one call per base. For a full matrix, repeat the call with each currency as the base. Up to 25 codes are accepted per request.
Why do I get null with base=USD?
With base=USD the reference series is constant, so a Pearson coefficient is undefined. The API returns null and a note asking for a non-USD base. Use base=EUR, GBP or another floating currency for a meaningful reading.
How many observations should I expect?
A one-year daily window returns roughly 250 to 252 overlapping returns. Short windows return fewer, and the response includes the exact count. Treat a reading built on a few dozen observations as indicative, not conclusive.
Measure dependence before you size the trade
No credit card required.
Correlation on Growth and above. 1,000 requests/month free. No credit card required.