Drawdown analysis
analyze_drawdownReturn the worst peak-to-trough decline of each currency vs base, with peak, trough, and recovery dates/days. Use for "how far did it fall and did it recover" questions or to rank the deepest drawdowns. Omit currency to rank the universe (sort deepest or recovery); provide one currency or a list to compare. Use analyze_volatility for dispersion and analyze_safe_haven for crisis behaviour. Defaults: 365-day window, base USD, sort deepest, universe liquid, limit 10. Returns { base, from, to, mode, results[] }; peak/trough dates are omitted and recovery fields are null when there is no drawdown or recovery in the window. 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_drawdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Window end YYYY-MM-DD (UTC). Defaults to today. | |
| base | No | Base currency to measure against (3-letter ISO 4217). Defaults to USD. | |
| from | No | Window start YYYY-MM-DD (UTC). Defaults to 365 days before `to`. | |
| sort | No | Ranking direction: deepest (largest decline first, default) or recovery (fastest recovery first). | |
| limit | No | Ranking: how many to return (default 10, max 50). | |
| currency | No | Currency to measure (3-letter ISO 4217), or a comma-separated list. OMIT to RANK the liquid set by drawdown. | |
| universe | No | Ranking universe: liquid (default) or majors. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| base | Yes | ||
| from | Yes | ||
| mode | Yes | ||
| sort | No | ||
| results | Yes | ||
| universe | No |