Loading
Loading
https://api.apifreaks.com/v1.0/currency/rates/historical
1. Open the Authorizations dropdown and Verify your API key.
2. Click Run to see the live response here.
$ pip install requestsimport requests
url = "https://api.apifreaks.com/v1.0/currency/rates/historical"
payload = {}
headers = {
'X-apiKey': ''
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
| Field | Type | Requirement | Description |
|---|---|---|---|
| date | String | Mandatory | For the latest currencies exchange rates endpoint, it is the date and time with timezone included in it (UTC). It represents the exact time at which these rates were recorded in our database.
For historical currencies exchange rates endpoint, it is the specific date (format YYYY-MM-DD) of which exchange rates are required. |
| base | String | Mandatory | It is the base currency with respect to which all rates will be calculated. It can be provided via input parameter. |
| rates | Map | Mandatory | A map of all rates of currencies w.r.t base currency. |