get_historical_rates
Fetch historical exchange rates for a currency pair with periods from 1 day (hourly) to 1 year (weekly).
Instructions
Get historical exchange-rate data points for a currency pair over a period. Periods: 1d (hourly), 7d (daily), 30d (daily), 1y (weekly). Requires API key (ALLRATES_API_KEY).
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": {
"source": "<source>",
"target": "<target>"
},
"name": "get_historical_rates"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | ISO 4217 currency code (e.g. USD, EUR, GBP). | |
| target | Yes | ISO 4217 currency code (e.g. USD, EUR, GBP). | |
| period | No | Time period to fetch history for. | 7d |