Ask five central banks for USD/INR and you'll get five slightly different numbers. They fix at different times of day, some publish a mid rate and others buying and selling rates, and some publish INR only through a cross rate.
Frankfurter v2 picks a source for you when you ask for a pair, or lets you choose a provider explicitly. Sometimes you want to see them all side by side: for a reconciliation, a dispute, or just to understand why two systems disagree.
Every official rate for a pair, in one call
import os, requests r = requests.get( "https://allratestoday.com/api/v1/central-banks/rates", params={"source": "USD", "target": "INR"}, headers={"Authorization": f"Bearer {os.environ['ART_KEY']}"}, ) print(r.json()) This returns each covered institution's latest official rate for the pair, with the institution, its publication date and the rate type. Pairs a bank doesn't publish directly are cross-computed through its home currency and flagged as derived.
Why the numbers differ
- Fixing time: the ECB publishes its reference rates around 16:00 CET, FBIL publishes India's reference rate in the early afternoon IST, and others fix at their own local times.
- Rate type: reference, mid, buying, selling or weighted average.
- Derived vs published: a cross rate through EUR isn't the same as a directly published INR rate.
When this is useful
- Explaining to a customer why your number differs from their bank's statement.
- Picking the source a contract names and showing that you used it.
- Spotting a source that has stopped publishing (its date falls behind the others).
I work on AllRatesToday.
