Every source in Frankfurter publishes on a schedule: of its 112 providers, 98 publish daily, and the rest weekly, monthly or quarterly. That is exactly what you want for accounting. It is not what you want for a checkout page at 3 pm when the euro has moved half a percent since the morning fix.
Two kinds of rate
- Official fixing: one number per day (or month), published by a central bank. Stable and citable.
- Market mid rate: the midpoint of the market right now. It moves all day, including when central banks are closed.
Frankfurter does the first. For the second you need a market feed.
Getting a rate from the last minute
AllRatesToday refreshes mid-market rates for 160+ currencies roughly every 60 seconds:
const res = await fetch( "https://allratestoday.com/api/v1/rates?source=USD&target=EUR,GBP,JPY", { headers: { Authorization: `Bearer ${process.env.ART_KEY}` } } ); const rates = await res.json(); // [{ rate: 0.9184, source: "USD", target: "EUR", time: "2026-12-02T15:04:00Z" }, ...] The time field tells you how fresh the number is, which matters if you display it to users.
Use both
A common pattern:
- show the live mid rate in the UI,
- book the transaction at that rate,
- report it in your accounts at the official daily rate your auditor expects.
The same key also returns official rates (/api/v1/central-bank/ecb/latest), so you don't need two vendors.
Caching
You don't need to call it on every page view. Cache for 60 seconds, since the source doesn't change faster than that, and one request a minute covers all your users.
I work on AllRatesToday.
