Historical rate on a date
historical_rateFetch ECB reference exchange rates for a past date (YYYY-MM-DD) by base currency; weekends and holidays return the preceding business day's rates.
Instructions
Get ECB reference rates for a specific past date (YYYY-MM-DD). Weekends/holidays return the most recent prior business day. Example: historical_rate('2020-01-02', base='USD').
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": {
"on": "<on>"
},
"name": "historical_rate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| on | Yes | ||
| base | No | EUR | |
| symbols | No |