Historical Currency
Get historical exchange rates for a specific date
Get historical exchange rates for a specific date with optional amount conversion
get/api/historical/rates
Request
- Base URLhttps://api.unirateapi.com
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
api_keystring required
API key for authentication
datestring required
Date in YYYY-MM-DD format
amountnumber
Amount to convert (optional)
fromstring
Base currency code (optional)
tostring
The currency to convert to (optional). If not specified, returns rates for all currencies.
format'json' | 'xml' | 'csv' | 'tsv'
The format of the response (optional).
callbackstring
The name of the JSONP callback function (optional). Only used when format is 'json'. Must be alphanumeric with underscores.
Response
Historical exchange rates retrieved successfully.
Changes
No recorded changes to this operation across all 1 revision of this API.