get_historical_exchange_rates
Retrieve historical exchange rates for any date or date range. Specify base and target currencies to get rates for specific currencies, with automatic fallback to the nearest available date.
Instructions
Returns historical exchange rates for a specific date or date range.
If the exchange rates for a specified date is not available, the rates available for the closest date before the specified date will be provided. Either a specific date, a start date, or a date range must be provided. The symbols can be used to filter the results to specific currencies. If symbols are not provided, all supported currencies will be returned.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base_currency | Yes | A base currency ISO4217 code for which rates are to be requested. | |
| symbols | No | A list of target currency ISO4217 codes for which rates against the base currency will be provided. If not provided, all supported currencies will be shown. | |
| specific_date | No | The specific date for which the historical rates are requested in the YYYY-MM-DD format. | |
| start_date | No | The start date, of a date range, for which the historical rates are requested in the YYYY-MM-DD format. | |
| end_date | No | The end date, of a date range, for which the historical rates are requested in the YYYY-MM-DD format. |