Skip to content

Get currency rate - /api/getRate

Currencies are identified by standard three-letter ISO 4217 codes.

Getting the currency rate for a certain day.

Request

Terminal window
curl --request GET --url 'https://kekkai-api.redume.su/api/getRate/?from_currency=RUB&conv_currency=USD&date=2024-10-16'

Query Parameters

ParameterDescription
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
conv_amountMultiplier for number conversion (Optional)

* - Required arguments

Response

Get currency exchange rate for a certain period

Getting the list of the array with currency rate for a certain period of time.

Request

Terminal window
curl --request GET --url 'https://kekkai-api.redume.su/api/getRate/?from_currency=RUB&conv_currency=USD&start_date=2024-10-16&end_date=2024-10-20'

Query parameters

ParameterDescription
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

* - Required arguments

Response