History analysis (change, trend, movers)
analyze_historySummarise how currencies moved against base over a window: start/end rate, change %, strengthened % (positive = stronger vs base), and optional min/max/avg. Use for questions like "how did EUR do over 10 years" and for movers rankings. Omit currencies to rank the universe (movers mode); provide them to compare specific ones. Use get_history for raw points, and the other analyze_* tools for volatility, correlation, drawdown, safe-haven, or mean-reversion questions. Defaults: 20-year window, base USD, sort strengthened, assetClass fiat, limit 10, stats true. Returns { base, from, to, mode, sort?, assetClass?, stats, results[] }. A 404 means no rate data at the window edges. Requires a signed-in connection and the Growth plan or higher; each successful call bills 1 API request.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "analyze_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Window end YYYY-MM-DD (UTC). Defaults to today; a future date clamps to today. | |
| base | No | Currency everything is measured against (3-letter ISO 4217). Defaults to USD. | |
| from | No | Window start YYYY-MM-DD (UTC). Defaults to 20 years (2 decades) before `to`. See `period` for a shorthand. | |
| sort | No | Movers ranking: strengthened (default) or weakened. | |
| limit | No | Movers: how many top results to return (default 10, max 200). | |
| stats | No | Include min/max/avg over the window per currency. Defaults to true; pass false to skip. | |
| period | No | Relative window shorthand for `from`: e.g. 10y, 6m, 30d, ytd, max. Ignored if `from` is given. | |
| interval | No | Attach a trend series per named currency: weekly, monthly, or yearly (compare mode only). | |
| assetClass | No | Movers universe: fiat (default, liquid tradeable currencies), metals (XAU/XAG/XPT/XPD), all (every currency including illiquid/frontier), or crypto (accepted, but this FX dataset has no crypto data, so results are empty). Redenomination artifacts are always dropped. | |
| currencies | No | Comma-separated currencies to compare, e.g. GBP,EUR,AED. OMIT to rank ALL currencies vs base ('movers' mode). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| base | Yes | ||
| from | Yes | ||
| mode | Yes | ||
| sort | No | ||
| stats | Yes | ||
| results | Yes | ||
| interval | No | ||
| assetClass | No |