Commercial bank buy and sell rates by API
Central bank rates are reference rates. What a customer actually gets at the counter or on a transfer is the commercial bank's own board: a buying rate and a selling rate, often separate for cash and telegraphic transfer (TT), updated several times a day.
Who needs bank boards
- Remittance and payroll apps showing what a recipient will receive.
- Importers and exporters comparing what their banks charge.
- Customs and tax rules in some countries that reference a named bank's selling rate.
Fetching one bank's board
Banks are grouped by two-letter country code. For example, a bank in Sri Lanka:
curl -H "Authorization: Bearer $ALLRATES_KEY" https://allratestoday.com/api/v1/bank-rates/lk/{bank}
Add ccy=USD for one currency, or date=2026-11-28 for a past board.
Reading a board correctly
- Buy vs sell is from the bank's side: the bank buys your foreign currency at the lower rate and sells at the higher one.
- Cash vs TT: cash rates have a wider spread.
- Update time: boards change during the day; store the timestamp.
The list of covered banks by country, with their codes: bank exchange rate API.