Перейти к основному содержимому

GET /api/v1/currency/rate

Returns the current exchange rate between two fiat currencies.

Authentication

None. This is a public endpoint.

Request

Query Parameters

ParameterTypeRequiredDescription
fromstringYesSource currency code (e.g., USD)
tostringYesTarget currency code (e.g., RUB)

Example

curl -X GET "https://intotes.com/api/v1/currency/rate?from=USD&to=RUB"

Response

200 OK

{
"from": "USD",
"to": "RUB",
"rate": 92.45
}

Errors

StatusCodeDescription
400bad_requestMissing from or to query parameter
404not_foundUnsupported currency pair
500internal_errorServer failed to retrieve exchange rate