REFERENCE DATA
ECB Reference FX
Latest validated dated observations, with explicit source and calculation metadata.
The underlying data is free
Underlying ECB observations are available free of charge from the European Central Bank. ApiVect charges for this managed interface, not exclusive access to the original data. ECB reference rates are informational and not transaction quotes. No real-time, trading or settlement guarantee is provided.
Source: https://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml. Original EUR observations are labelled originalEuroRate; inverse, cross and identity results are calculated by ApiVect and labelled accordingly. This is not an ECB product or endorsement.
Private currency-pair requests
Use a current separate subscription and a dedicated fx:read key. Send POST https://api.apivect.com/v1/reference-fx/quotes with Authorization: Bearer YOUR_KEY, Content-Type: application/json and a fresh opaque Idempotency-Key.
{"pairs":[{"base":"EUR","quote":"DKK"},{"base":"USD","quote":"GBP"}]}
Currency codes must be three uppercase ASCII letters. Coverage follows the free latest ECB source snapshot, plus the EUR reference unit. Each response lists its availableCurrencies; other correctly shaped codes produce an unsupported finding and still count as submitted pairs. No amounts, customer, invoice or bank data are accepted. Each batch has 1–100 pairs and a maximum 16 KiB body. Limits are two requests per second, 60 per minute and one operation at a time per workspace, shared across its keys.
Precision and usage
All rates and original EUR observations are JSON decimal strings. EUR is the reference unit, equal to 1. A cross rate from A to B is B-per-EUR divided by A-per-EUR. Derived rates use decimal arithmetic and round to 12 fractional places, ties to even; an unrepresentable result is refused as an item finding. Keep decimal arithmetic in your integration. The returned source hash identifies the exact validated XML revision.
Each submitted pair in a completed response consumes one pair unit, including duplicates and unsupported-currency findings. The entire batch must fit the remaining allowance. Malformed requests, missing or stale data, and technical failures consume no pair units. There is no trial, rollover, meter or extra-usage charge.
Dates, revisions and freshness
The API supplies the latest validated snapshot only, not a historical time series. Every response shows its ECB reference date, source hash, successful fetch time and original evaluation time. A shared background refresh attempts the fixed public source at most once per 15 minutes; customer requests never trigger an upstream fetch. Invalid or older-date responses cannot replace the last validated snapshot. Same-date corrections can replace it atomically.
ApiVect's freshness policy uses 18:00 in Europe/Berlin, including daylight-saving changes, as a publication grace threshold. This is our policy, not an ECB deadline or service guarantee. Before that threshold, the previous TARGET business day's date is the minimum; a newer already-published snapshot is accepted. Afterwards, the current TARGET business date is required. Weekends, New Year's Day, Good Friday, Easter Monday, 1 May, 25 December and 26 December are closed. Other ECB office holidays are not treated as TARGET closures.
Successful validation must also be no more than 24 hours old. A failed fetch never advances that timestamp. Date-stale, missing or unvalidated data returns HTTP 503 with reference_fx_stale, reference_fx_missing or reference_fx_unavailable, without numeric stale rates or pair usage. Availability depends on the public source. Corrections to older dates after the daily feed has advanced are outside this latest-snapshot service.
Exact retries
Retry the same body and idempotency key within its original 24-hour encrypted replay window to recover the exact prior result without additional pair usage. The replay keeps the original date, revision, notices and evaluation time; it is not a refreshed quote. A changed body conflicts with that key. Current key permission and paid entitlement are rechecked even for replay. Rate limits apply to attempts.