Frankfurter v2 has good African coverage among its 112 providers, including the National Bank of Ethiopia, the Central Bank of Kenya, the Central Bank of Nigeria and the BCEAO. If you need those official rates, it's a solid free option.
Two things it doesn't cover are worth knowing about.
1. Some central banks are missing
The Bank of Uganda isn't a Frankfurter provider. AllRatesToday carries it, along with Kenya, Ghana, Tanzania, Zambia, Mozambique, Botswana, Namibia, Rwanda, Malawi, Angola and others: 138 central banks in total.
2. After liberalisation, bank rates diverge
Ethiopia is the clearest case. Since the July 2024 FX directive, banks set their own buying and selling rates every morning, so the National Bank of Ethiopia's rate is a reference and not a price anyone transacts at.
AllRatesToday reads the boards of 21 Ethiopian banks hourly, including CBE, Dashen, Bank of Abyssinia, Hibret and Zemen:
import os, requests r = requests.get( "https://allratestoday.com/api/v1/bank-rates/et", headers={"Authorization": f"Bearer {os.environ['ART_KEY']}"}, ).json() for b in r["banks"]: usd = next((x for x in b["rates"] if x["ccy"] == "USD"), None) if usd: print(f'{b["name"]:<28} buy {usd["buy"]:>8} sell {usd["sell"]:>8} vs NBE {usd["vs_official_pct"]}%') Other African countries with bank boards: Kenya (11 banks), Tanzania (14), Ghana (11), Uganda, Mozambique, Botswana, Zambia, South Africa, Egypt, Tunisia, Angola and more.
Customs
For imports, the Kenya, Uganda, Ghana and Mauritius revenue authorities' customs rates are also available through /api/v1/customs/{country}/latest.
I work on AllRatesToday.
