Loading
Loading
https://api.apifreaks.com/v1.0/currency/converter/historical/prices
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/converter/historical/prices"
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 rates converter, it is the date and time with timezone included in it (UTC). It represents the exact time at which this rate of conversion was recorded in our database.
For historical rates converter, it is the date for which data is requested. It is provided via input param |
| from | String | Mandatory | It is the base currency code whose amount will be converted. |
| to | String | Mandatory | It is the desired currency code of which converted value is required |
| rate | String | Mandatory | It is the current base rate with base currency as desired converted currency and quote currency as from currency code |
| givenAmount | String | Mandatory | The amount to be converted. It can be given in the input |
| convertedAmount | String | Mandatory | Converted amount in the desired currency |