Get currency rate - /api/getRate
Currencies are identified by standard three-letter ISO 4217
currency codes.
Getting the currency rate for a certain day.
Request
Query Parameters
Parameter | Description |
---|---|
from_currency |
ISO 4217 code of the currency from which the conversion takes place |
conv_currency |
ISO 4217 code of the currency to which the conversion is performed |
date |
Currency rate date in the format YYYYY-DD-MM |
Response
Output
Get currency exchange rate for a certain period
Getting the list of the array with currency rate for a certain period of time.
Request
Query params
Parameter | Description |
---|---|
from_currency |
ISO 4217 code of the currency from which the conversion takes place |
conv_currency |
ISO 4217 code of the currency to which the conversion is performed |
start_date |
Start date of the period in the format YYYYY-DD-MM |
end_date |
Period end date in the format YYYYY-DD-MM |
Response
Output
[
{
"from_currency": "RUB",
"conv_currency": "USD",
"rate": 0.01,
"date": "2024-10-17T00:00:00.000Z"
},
{
"from_currency": "RUB",
"conv_currency": "USD",
"rate": 0.01,
"date": "2024-10-18T00:00:00.000Z"
},
{
"from_currency": "RUB",
"conv_currency": "USD",
"rate": 0.01,
"date": "2024-10-19T00:00:00.000Z"
},
{
"from_currency": "RUB",
"conv_currency": "USD",
"rate": 0.01,
"date": "2024-10-20T00:00:00.000Z"
},
{
"from_currency": "RUB",
"conv_currency": "USD",
"rate": 0.01,
"date": "2024-10-21T00:00:00.000Z"
}
]