ExchangeRate-API · Schema
HistoricalRatesResponse
Historical exchange rates response for a specific date (Pro / Business / Volume plans).
Currency ExchangeForeign ExchangeFinancial DataForexCurrency ConversionPublic APIs
Properties
| Name | Type | Description |
|---|---|---|
| result | string | Status indicator. |
| documentation | string | Link to API documentation. |
| terms_of_use | string | Link to terms of use. |
| year | integer | Year of historical record. |
| month | integer | Month of historical record. |
| day | integer | Day of historical record. |
| base_code | string | Base currency for the rates. |
| requested_amount | number | Optional: amount supplied for conversion. |
| conversion_rates | object | Mapping of currency codes to historical exchange rates. |
| conversion_amounts | object | Optional: mapping of currency codes to converted amounts when amount supplied. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "HistoricalRatesResponse",
"description": "Historical exchange rates response for a specific date (Pro / Business / Volume plans).",
"type": "object",
"properties": {
"result": {
"type": "string",
"description": "Status indicator."
},
"documentation": {
"type": "string",
"format": "uri",
"description": "Link to API documentation."
},
"terms_of_use": {
"type": "string",
"format": "uri",
"description": "Link to terms of use."
},
"year": {
"type": "integer",
"description": "Year of historical record."
},
"month": {
"type": "integer",
"description": "Month of historical record."
},
"day": {
"type": "integer",
"description": "Day of historical record."
},
"base_code": {
"type": "string",
"description": "Base currency for the rates."
},
"requested_amount": {
"type": "number",
"description": "Optional: amount supplied for conversion."
},
"conversion_rates": {
"type": "object",
"description": "Mapping of currency codes to historical exchange rates.",
"additionalProperties": {"type": "number"}
},
"conversion_amounts": {
"type": "object",
"description": "Optional: mapping of currency codes to converted amounts when amount supplied.",
"additionalProperties": {"type": "number"}
}
},
"required": ["result", "year", "month", "day", "base_code"]
}