PRACTICAL GUIDE
ECB reference rates: keep the source date with every calculation
By ApiVect ·
Keep the ECB observation date, source revision and original evaluation time with your calculations. Test pair direction, freshness and exact retries.

A reference rate becomes easier to explain when its date, source revision and calculation travel with the result. Saving only a currency pair and a number leaves the next developer guessing which observations were used and whether a later download changed anything.
This is ApiVect's practical integration guide. The underlying ECB observations are available free of charge; our commercial ECB Reference FX API charges for a managed interface to that public source. ECB reference rates are informational, and the ECB strongly discourages their use for transaction purposes. Treat this workflow as dated reference-data handling, without a real-time, trading or settlement guarantee.
1. Keep the reference date separate from retrieval time
Record the date of the underlying ECB observations, the successful fetch time and the original evaluation time of the API operation. Each answers a different question. The source date identifies the observation day; retrieval tells you when the snapshot was obtained; evaluation tells you when your operation used it.
Opening an import report tomorrow should preserve those values. Add a separate display or review timestamp if your application needs one. This makes it possible to explain an earlier result without relabelling it as today's observation.
2. Preserve the original EUR observations
The ECB quotes its reference currencies against the euro. Keep the relevant original EUR observations alongside your chosen base and quote currencies. ApiVect labels original observations separately from its calculated inverse, cross and identity results.
Save the returned source hash as well as the reference date. A same-date correction can produce a different XML revision while keeping the same observation day. That hash helps distinguish the inputs behind two calculations. Keep monetary application records and the chosen rate-selection policy separately; a reference-data response does not decide a transaction's required rate.
3. Test the direction with synthetic decimal inputs
The following is a synthetic arithmetic fixture, not an ECB quotation or an ApiVect response. A and B are placeholders, not currency codes to send to the API.
1 EUR = 2.0000 A
1 EUR = 4.0000 B
A to B = 4.0000 / 2.0000
= 2.0000 B per A
Reversing the pair gives 0.5000 A per B. Make both directions explicit in your tests so a swapped numerator cannot pass unnoticed. Use decimal arithmetic when reading the API's decimal-string rates. Derived rates use twelve fractional places with ties-to-even rounding; retain the original observations when investigating a rounding difference.
4. Handle freshness as a policy decision
ApiVect's freshness policy uses an 18:00 publication grace threshold in Europe/Berlin, including daylight-saving changes. This is ApiVect's policy, not an ECB publication deadline or service guarantee. Before that threshold, the previous TARGET business date is the minimum accepted date; afterwards, the current TARGET business date is required. Apply its TARGET business-day calendar, including closures; wall-clock calendar days alone are insufficient.
Successful validation must also be no more than 24 hours old. A failed fetch does not advance that timestamp. Missing, stale or unvalidated data produces an unavailable response without numeric stale rates or pair usage. Let the application surface that state, and keep any previously saved observation clearly dated rather than presenting it as a successful new evaluation.
5. Preserve the meaning of an exact retry
An exact retry with the same body and idempotency key within the original 24-hour replay window recovers the prior result without additional pair usage. The replay retains its original date, revision, notices and evaluation time. It is not a newly evaluated quote.
When you intentionally need a fresh evaluation, create a new operation with a new key and preserve its relationship to the earlier record. Current key permission, paid entitlement and rate limits still apply. The API serves the latest validated snapshot, so your application's saved evidence also matters when reviewing older work.
6. Build an evidence-focused test set
Include a reversed pair, a same-date source revision, an unavailable or stale source and an exact replay that retains its earlier evaluation time. Use explicitly synthetic fixtures and test the labels shown to the operator alongside the arithmetic. Keep unsupported-currency findings distinct from source unavailability.
Read the integration and freshness policy for the full contract. Our paid managed interface is a separate subscription; the free ECB original remains available directly. Review the current plan and Billing eligibility before integrating.