GET /api/v1/currency/rate
Returns the current exchange rate between two fiat currencies.
Authentication
None. This is a public endpoint.
Request
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
from | string | Yes | Source currency code (e.g., USD) |
to | string | Yes | Target 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
| Status | Code | Description |
|---|---|---|
| 400 | bad_request | Missing from or to query parameter |
| 404 | not_found | Unsupported currency pair |
| 500 | internal_error | Server failed to retrieve exchange rate |