A user in Colombo sends money home from Dubai. Your app shows the official rate from a central bank API. The user then sees a different number at the bank and files a support ticket.
The official rate is real, but nobody transacts at it. Banks quote a buying rate below it and a selling rate above it, and the gap is their margin.
What Frankfurter gives you
curl "https://api.frankfurter.dev/v2/rate/USD/LKR" One number from the central bank. That is useful, and it's all Frankfurter is built to give you.
What the bank boards look like
AllRatesToday reads the published boards of 1,223 commercial banks in 124 countries every hour and returns them next to the official rate:
import os, requests r = requests.get( "https://allratestoday.com/api/v1/bank-rates/lk", headers={"Authorization": f"Bearer {os.environ['ART_KEY']}"}, ) for bank in r.json()["banks"]: for row in bank["rates"]: if row["ccy"] == "USD": print(bank["bank"], row["buy"], row["sell"], row.get("spread_pct")) Each row carries buy, sell, mid, spread_pct, plus official and vs_official_pct, so you can show users exactly how far a bank sits from the central bank rate.
Where this matters
- Remittance and wallet apps that compare banks.
- Treasury teams checking whether a bank's quote is fair.
- Anyone who has been asked "why is your rate different from my bank's?"
Board rates are retail prices read from each bank's own site. They are indicative and change during the day, so label them that way in your UI.
I work on AllRatesToday.