History
get_historyA single currency's daily rate time series over a date range. Free: last 30 days; Starter and above: full history.
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": {
"currency": "<currency>"
},
"name": "get_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End date YYYY-MM-DD (UTC). Defaults to today; a future date clamps to today. | |
| base | No | Base currency the rates are expressed against (3-letter ISO 4217). Defaults to USD. | |
| from | No | Start date YYYY-MM-DD (UTC). Defaults to 7 days before `to`. | |
| currency | Yes | The currency whose history to fetch (3-letter ISO 4217), e.g. INR. One currency per call. | |
| interval | No | Aggregation: daily (default), weekly, monthly, or yearly. Coarser intervals average the daily rates per bucket (weekly key = the week's Monday, monthly = YYYY-MM, yearly = YYYY). |