FX Spot Rates
forexGet raw historical FX spot-rate rows for a currency pair (e.g. EUR/USD) as a plain-text table, raw rows, exact values, or JSON-like data, without chart metadata. Daily official central-bank reference rates with multi-year history. Optional technical-indicator series (SMA, EMA, RSI, MACD, Bollinger Bands, etc.) are selected by comma-separated slugs in indicators; interval selects daily or intraday. Access: API key required, else returns subscription_required with a subscribe link.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"base": "<base>",
"quote": "<quote>"
},
"name": "forex"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | Yes | Base currency, 3-letter ISO code (case-insensitive). Supported: lowercase 3-letter catalogue currency, e.g. usd or eur. | |
| quote | Yes | Quote currency, 3-letter ISO code (case-insensitive). Supported: lowercase 3-letter catalogue currency, e.g. usd or eur. | |
| end_date | No | Inclusive upper bound, YYYY-MM-DD. Defaults to today. | |
| end_time | No | intraday only: inclusive RFC 3339 upper bound. | |
| interval | No | daily (default): spot history. intraday: timestamped official intraday reference-rate fixings for the pair, bounded by start_time and end_time. | daily |
| indicators | No | Comma-separated technical-indicator slugs to attach to each row. Supported: adx_14, atr_14, bollinger_bands, cci_20, donchian_20, ema_12, ema_20, ema_200, ema_26, ema_50, macd, macd_histogram, macd_signal, rsi_14, sma_20, sma_200, sma_50, stochastic_14_3, williams_r_14, all. | |
| start_date | No | Inclusive lower bound, YYYY-MM-DD. Defaults to ~5 years ago. | |
| start_time | No | intraday only: inclusive RFC 3339 lower bound. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |