What a central-bank reference rate is
CurrencyCore aggregates central-bank reference rates via Frankfurter, with the European Central Bank as the primary EUR source. The European Central Bank publishes foreign exchange reference rates for the euro against a set of currencies on each working day except TARGET closing days, usually around 16:00 CET. The rate is a reference midpoint from a concertation procedure with central banks, not a dealing quote. The ECB publishes EUR as the base, so EUR/USD 1.156992 means one euro is worth 1.156992 US dollars.
CurrencyCore stores each day's snapshot with USD as the base and derives every other pair arithmetically. That is why the converter can cover 160 fiat currencies without storing every possible pair.
Why the mid-market rate matters
The mid-market rate is the midpoint between the buy and sell sides of the wholesale market. It contains no card fee, no transfer fee and no retail margin. It is the cleanest benchmark for what a currency is worth at a moment in time, and it is the rate to use when comparing two providers. A bank or card quote will usually be worse, because the provider earns from the difference.
How cross-rate conversion works
Every rate in the snapshot is expressed as units of a currency per one US dollar. To convert from A to B, divide the amount by A's rate and multiply by B's rate:
result = (amount / units of A per USD) x units of B per USDHere is a worked example using the annual averages in fx-history.json. For 2026 year-to-date, the file records USD/INR at 94.116842 and EUR/USD at 1.156992. Both are averages of daily observations through 30 October 2026, sourced from the Federal Reserve H.10 release via FRED. A euro cross rate uses both USD legs:
EUR/INR = 94.116842 x 1.156992 = 108.8924So 100 euros is 100 x 108.8924 = 10,889.24 Indian rupees. The same arithmetic works for any two currencies in the snapshot. If a rate is quoted the other way round, invert it first: a USD/EUR quote of 0.86431 is the same as EUR/USD 1.156992.
Example data: 2026 year-to-date averages through 30 October 2026, Federal Reserve H.10 via FRED, bundled in fx-history.json. The converter above uses the latest central-bank reference snapshot instead.
Weekends, holidays and carry-forward
The ECB does not publish a reference rate on weekends or TARGET closing days. A request for one of those dates resolves to the most recent earlier snapshot, and the API reports it: date is the date actually used, requestedDate appears when it differs from the date requested, and asOf lists any single currency that was carried forward. The converter shows the rate date under the result so you can see which trading day you are looking at.
Rounding and why a bank quote differs
The converter displays the effective pair rate to six decimal places and the converted amount to between two and four. Those are display rules only; the calculation uses the snapshot values at full precision. The API rounds rebased rates with a scale-aware helper, so very small values keep usable precision instead of collapsing to a few digits.
A bank quote differs for three reasons. First, the provider applies a spread around the mid rate, so the buy and sell prices differ. Second, it may add a fixed or percentage fee. Third, the quote may come from a card network or payment rail rather than a central-bank reference rate, with its own settlement window. None of those are errors: they are the cost of the service. Use the mid-market figure as the benchmark, then compare the all-in amount you would actually receive.