Get Exchange Rate For Date
GET {{baseUrl}}/odata/Currencies(a5f5cd68-2c70-4637-ad82-3144733eed2e)/GetExchangeRate(date=2023-04-10)
Get Exchange Rate for the provided date.
For example we have the following currency exchange rates:
effectiveDate | exchangeRate |
---|---|
2023-04-01 | 1.25 |
2023-04-10 | 1.3 |
Function will return the following results:
date arg | value |
---|---|
date=2023-03-25 | 1 |
date=2023-04-01 | 1.25 |
date=2023-04-08 | 1.25 |
date=2023-04-10 | 1.3 |
date=2023-05-01 | 1.3 |
If currency has no defined exchange rates - returned value always equal 1
RESPONSES
status: OK
{"@odata.context":"https://api.timetta.com/odata/$metadata#Edm.Decimal","value":1.25}