ImportOS · Docs
API reference

GET /v1/fx

Exchange rate

Exchange rate

NBU official rate for any pair with UAH, ECB for the rest, cross rates otherwise. Requires scope read:pricing.

  • Authentication: header Authorization: Bearer rv_live_... (API keys and scopes)
  • Required scope: read:pricing
Descriptions of the operation, parameters and fields come from the OpenAPI specification (openapi.json).

Parameters

FieldInTypeRequiredDescription
basequerystringyesISO-4217 base currency, e.g. EUR.
quotequerystringyesISO-4217 quote currency, e.g. UAH.
datequerystringnoRate date (yyyy-mm-dd). Default: latest. Weekends/holidays return the previous working day (stale: true).

Responses

200

Exchange rate.

application/json · Schema: FxResponse

FieldTypeRequiredDescription
basestringyes
quotestringyes
ratenumberyes1 base = rate quote.
requested_datestringyes
effective_datestringyes
stalebooleanyestrue if effective_date differs from requested_date.
sourcestringyesnbu | ecb | nbu-cross | identity | mock.
mode"live" | "test" | "mock"yes

400

Invalid request parameters or body (code validation_error).

application/problem+json · Schema: Problem

401

Missing, malformed, unknown, revoked or expired API key (code unauthorized).

application/problem+json · Schema: Problem

403

The API key lacks the scope required by this endpoint (code insufficient_scope).

application/problem+json · Schema: Problem

422

Date in the future or no rate for the pair.

application/problem+json · Schema: Problem

429

Rate limit exceeded for the tenant plan (code rate_limited). Wait Retry-After seconds.

application/problem+json · Schema: Problem

502

Rate provider unavailable.

application/problem+json · Schema: Problem

Example

curl -s "https://api.importos.app/v1/fx?base=EUR&quote=UAH" \
  -H "Authorization: Bearer $IMPORTOS_API_KEY"

On this page