Access needs a free AllRatesToday API key

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

This dataset is published by AllRatesToday under CC BY-NC 4.0 (free for research, teaching, personal projects and journalism; commercial use needs the Official Rates plan at https://allratestoday.com/pricing#official). To download it, register for a free AllRatesToday account at https://allratestoday.com/register and paste your API key (it starts with art_live_) below. Requests are checked automatically every 5 minutes: a valid key is approved within about 5 minutes, an invalid one is rejected. If you were rejected by mistake, email support@allratestoday.com with your Hugging Face username and your key.

Log in or Sign Up to review the conditions and access this dataset content.

Central Bank Exchange Rates

Official exchange rates published by 123 central banks and 6 tax authorities, as one CSV per institution: 16,401,312 rows, the oldest series from 1914, latest table in this mirror 2026-11-16. Collected and published by AllRatesToday and refreshed daily from the GitHub source repository AllRates-Today/central-bank-exchange-rates.

Every row is the figure the institution itself published for that date: the ECB euro reference rate, the Federal Reserve H.10 table, the Bank of England spot rates, RBI reference rates, PBoC central parity, HMRC monthly rates for VAT, US Treasury quarterly rates, and a hundred more. These are the rates that invoices, tax filings, customs declarations, transfer pricing and audits require, as opposed to market rates.

Need today's rates, not a 2-day-old mirror? Register for a free API key and query the same data live from the central bank rates API.

Access

Downloading needs two free accounts: a Hugging Face login, and an AllRatesToday account whose API key you paste into the Get access form above (register here, the key is on your dashboard). Requests are checked every 5 minutes: a valid key is approved within about 5 minutes, an invalid key is rejected. Rejected by mistake? Email support@allratestoday.com with your Hugging Face username and key. In code, run huggingface-cli login once (or set HF_TOKEN) and load_dataset, pd.read_csv("hf://..."), Polars and DuckDB all work. The same tables are on the GitHub source repository and the API as well.

Schema

Column Meaning
date Publication date (ISO 8601). Weekends and holidays are absent, as in the source.
base Currency being priced (ISO 4217)
quote Currency it is priced in
type The institution's own label: reference, middle, buy, sell, spot, monthly, monthly_average, ...
value One unit of base costs value units of quote

Direction follows the publisher: the ECB quotes EUR → USD, the Reserve Bank of India quotes USD → INR. Nothing is cross-computed; if a bank did not print a pair, it is not in the file.

Files

File What it is
rates/<code>.csv Full history for one institution, e.g. rates/ecb.csv, rates/fed.csv, rates/boe.csv, rates/rbi.csv
index.json Catalogue of every source: name, country, home currency, latest date, currencies published
sources.json Institution metadata, including the official publication page each table comes from
ATTRIBUTION.txt How to credit the data and where the live tables are

Load

from datasets import load_dataset
ds = load_dataset("AllRatesToday/central-bank-exchange-rates", "rates")
import pandas as pd
ecb = pd.read_csv("hf://datasets/AllRatesToday/central-bank-exchange-rates/rates/ecb.csv", parse_dates=["date"])
usd = ecb[(ecb.quote == "USD") & (ecb.type == "reference")].set_index("date")["value"]

Need the rate for one date in code rather than the whole file? The API does the holiday fallback for you, no key needed for the latest table:

curl "https://allratestoday.com/api/central-bank/ecb/latest"

Sources

Institution Country Code Home Latest Rows SDK
Monetary Authority of Macao Macao amcm MOP 2026-11-16 135,460 npm · GitHub
Bank Al-Maghrib Morocco bam MAD 2026-11-16 208,362 npm · GitHub
Banco de Guatemala Guatemala banguat GTQ 2026-11-16 258,169 npm · GitHub
Banco de México Mexico banxico MXN 2026-11-13 8,776 npm · GitHub
Swiss Federal Office for Customs and Border Security Switzerland bazg CHF 2026-11-16 550,984 npm · GitHub
Bangladesh Bank Bangladesh bb BDT 2026-11-16 75,984 npm · GitHub
Banco Central do Brasil (PTAX) Brazil bcb BRL 2026-11-16 850,777 npm · GitHub
Banco Central de Bolivia Bolivia bcbol BOB 2026-11-16 86,402 npm · GitHub
Banque Centrale du Congo DR Congo bcc CDF 2026-11-16 3,210 npm · GitHub
Central Bank of Chile Chile bcch CLP 2026-11-16 372,496 npm · GitHub
Banco Central de Costa Rica Costa Rica bccr CRC 2026-11-16 9,910 npm · GitHub
Banco Central de Cuba Cuba bccu CUP 2026-11-16 1,196 npm · GitHub
Central Bank of West African States (BCEAO) West Africa (WAEMU) bceao XOF 2026-11-16 75,340 npm · GitHub
Banco Central de Honduras Honduras bch HNL 2026-11-14 1,922 npm · GitHub
Banque Centrale de Mauritanie Mauritania bcm MRU 2026-11-16 11,229 npm · GitHub
Banco Central de Nicaragua Nicaragua bcn NIO 2026-11-16 5,434 npm · GitHub
Banco Central del Paraguay Paraguay bcp PYG 2026-11-16 66,324 npm · GitHub
Central Bank of Argentina Argentina bcra ARS 2026-11-16 176,753 npm · GitHub
Banco Central de la República Dominicana Dominican Republic bcrd DOP 2026-11-16 82,613 npm · GitHub
Central Reserve Bank of Peru Peru bcrp PEN 2026-11-16 10,829 npm · GitHub
Banco Central de São Tomé e Príncipe São Tomé and Príncipe bcstp STN 2026-11-16 1,386 npm · GitHub
Central Bank of Tunisia Tunisia bct TND 2026-11-16 100,757 npm · GitHub
Central Bank of Uruguay Uruguay bcu UYU 2026-11-16 368,580 npm · GitHub
Central Bank of Venezuela Venezuela bcv VES 2026-11-13 71,410 npm · GitHub
Bank of Algeria Algeria bda DZD 2026-11-16 107,382 npm · GitHub
Banca d'Italia Italy bdi EUR 2026-11-16 428,572 npm · GitHub
Banco de Moçambique Mozambique bdm MZN 2026-11-16 2,436 npm · GitHub
Bank of Central African States (BEAC) Central Africa (CEMAC) beac XAF 2026-11-16 17,602 npm · GitHub
Central Bank of Madagascar (BFM) Madagascar bfm MGA 2026-11-16 703 npm · GitHub
Bank Indonesia Indonesia bi IDR 2026-11-16 131,748 npm · GitHub
Bank of Mauritius Mauritius bmu MUR 2026-11-16 1,344 npm · GitHub
National Bank of Angola Angola bna AOA 2026-11-16 200,387 npm · GitHub
Bulgarian National Bank Bulgaria bnb EUR 2026-11-16 78,096 npm · GitHub
Bank Negara Malaysia Malaysia bnm MYR 2026-11-16 45,495 npm · GitHub
National Bank of Romania Romania bnr RON 2026-11-16 161,604 npm · GitHub
National Bank of Rwanda Rwanda bnrw RWF 2026-11-16 215,280 npm · GitHub
Bank of Albania Albania boa ALL 2026-11-16 1,380 npm · GitHub
Bank of Botswana Botswana bob BWP 2026-11-16 34,574 npm · GitHub
Bank of Canada Canada boc CAD 2026-11-16 59,008 npm · GitHub
Bank of England United Kingdom boe GBP 2026-11-16 63,204 npm · GitHub
Bank of Ghana Ghana bog GHS 2026-11-16 193,797 npm · GitHub
Bank of Guyana Guyana bogy GYD 2026-11-16 116 npm · GitHub
Bank of Israel Israel boi ILS 2026-11-16 245,430 npm · GitHub
Bank of Japan Japan boj JPY 2026-11-16 13,903 npm · GitHub
Bank of Jamaica Jamaica bojm JMD 2026-11-16 889,046 npm · GitHub
Bank of Korea South Korea bok KRW 2026-11-16 414,311 npm · GitHub
Bank of the Lao PDR Laos bol LAK 2026-11-16 46,129 npm · GitHub
Bank of Mongolia Mongolia bom MNT 2026-11-16 3,116 npm · GitHub
Bank of Namibia Namibia bon NAD 2026-11-16 196 npm · GitHub
Bank of Thailand Thailand bot THB 2026-11-16 240,054 npm · GitHub
Bank of Tanzania Tanzania botz TZS 2026-11-16 485,139 npm · GitHub
Bank of Uganda Uganda bou UGX 2026-11-16 4,851 npm · GitHub
Bank of Zambia Zambia boz ZMW 2026-11-16 702 npm · GitHub
Banque de la République d'Haïti Haiti brh HTG 2026-11-16 159 npm · GitHub
Bank of Sierra Leone Sierra Leone bsl SLE 2026-11-16 769 npm · GitHub
Bangko Sentral ng Pilipinas Philippines bsp PHP 2026-11-16 2,046 npm · GitHub
Central Bank of Armenia Armenia cba AMD 2026-11-16 301,850 npm · GitHub
Central Bank of Azerbaijan Azerbaijan cbar AZN 2026-11-16 114,783 npm · GitHub
Central Bank of Bahrain Bahrain cbb BHD 2026-11-16 75,665 npm · GitHub
Central Bank of Barbados Barbados cbbd BBD 2026-11-16 58,954 npm · GitHub
Central Bank of Bosnia and Herzegovina Bosnia and Herzegovina cbbh BAM 2026-11-14 140,892 npm · GitHub
Central Bank of Belize Belize cbbz BZD 2026-11-16 32,861 npm · GitHub
Central Bank of the Republic of China (Taiwan) Taiwan cbc TWD 2026-11-16 4,688 npm · GitHub
Central Bank of Egypt Egypt cbe EGP 2026-11-16 2,448 npm · GitHub
Central Bank of The Gambia Gambia cbg GMD 2026-11-16 1,514 npm · GitHub
Central Bank of Iceland Iceland cbi ISK 2026-11-16 27,140 npm · GitHub
Central Board of Indirect Taxes and Customs (CBIC) India cbic INR 2026-11-06 88 npm · GitHub
Central Bank of Iraq Iraq cbiq IQD 2026-11-12 94,079 npm · GitHub
Central Bank of Iran Iran cbir IRR 2026-11-16 1,316 npm · GitHub
Central Bank of Jordan Jordan cbj JOD 2026-11-16 660 npm · GitHub
Central Bank of Kuwait Kuwait cbk KWD 2026-11-16 352,718 npm · GitHub
Central Bank of Kenya Kenya cbke KES 2026-11-16 15,057 npm · GitHub
Central Bank of Libya Libya cbl LYD 2026-11-16 167,193 npm · GitHub
Central Bank of Myanmar Myanmar cbm MMK 2026-11-16 130,834 npm · GitHub
Central Bank of Nigeria Nigeria cbn NGN 2026-11-16 187,616 npm · GitHub
Central Bank of Oman Oman cbo OMR 2026-11-16 112,566 npm · GitHub
Bank of Russia Russia cbr RUB 2026-11-14 100,137 npm · GitHub
Central Bank of Sri Lanka Sri Lanka cbsl LKR 2026-11-16 192,879 npm · GitHub
Central Bank of Turkmenistan Turkmenistan cbt TMT 2026-11-16 1,631 npm · GitHub
Central Bank of Trinidad and Tobago Trinidad and Tobago cbtt TTD 2026-11-16 156,826 npm · GitHub
Central Bank of Uzbekistan Uzbekistan cbu UZS 2026-11-14 119,369 npm · GitHub
Central Bank of the UAE United Arab Emirates cbuae AED 2026-11-16 144,786 npm · GitHub
Central Bank of Suriname Suriname cbvs SRD 2026-10-13 90,122 npm · GitHub
Czech National Bank Czech Republic cnb CZK 2026-11-16 87,244 npm · GitHub
AllRatesToday Composite (official sources) Global composite USD 2026-11-16 646,061 —
Danmarks Nationalbank Denmark dnb DKK 2026-11-16 86,644 npm · GitHub
European Central Bank Eurozone ecb EUR 2026-11-16 222,020 npm · GitHub
US Federal Reserve (H.10) United States fed USD 2026-11-13 58,828 npm · GitHub
Hong Kong Association of Banks (HKAB) Hong Kong hkab HKD 2026-11-16 660 npm · GitHub
Hong Kong Monetary Authority Hong Kong hkma HKD 2026-10-31 207,516 npm · GitHub
HM Revenue & Customs United Kingdom hmrc GBP 2026-11-01 10,095 npm · GitHub
International Monetary Fund International imf USD 2026-11-16 485,143 npm · GitHub
Internal Revenue Service (yearly average rates) United States irs USD 2025-12-31 38 —
Bank of Lithuania Lithuania lb EUR 2026-11-16 375,729 npm · GitHub
Monetary Authority of Singapore Singapore mas SGD 2026-11-16 124,998 npm · GitHub
Maldives Monetary Authority Maldives mma MVR 2026-11-16 3,667 npm · GitHub
Magyar Nemzeti Bank Hungary mnb HUF 2026-11-16 91,263 npm · GitHub
National Bank of Cambodia Cambodia nbc KHR 2026-11-16 180,957 npm · GitHub
National Bank of Ethiopia Ethiopia nbe ETB 2026-11-16 30,780 npm · GitHub
National Bank of Georgia Georgia nbg GEL 2026-11-14 118,437 npm · GitHub
National Bank of Kazakhstan Kazakhstan nbk KZT 2026-11-16 111,450 npm · GitHub
National Bank of the Kyrgyz Republic Kyrgyzstan nbkr KGS 2026-11-14 20,346 npm · GitHub
National Bank of Moldova Moldova nbm MDL 2026-11-16 125,739 npm · GitHub
Narodowy Bank Polski Poland nbp PLN 2026-11-16 93,625 npm · GitHub
National Bank of the Republic of Belarus Belarus nbrb BYN 2026-11-16 105,699 npm · GitHub
National Bank of North Macedonia North Macedonia nbrm MKD 2026-11-16 664,308 npm · GitHub
National Bank of Serbia Serbia nbs RSD 2026-11-16 92,805 npm · GitHub
National Bank of Tajikistan Tajikistan nbt TJS 2026-11-14 157,532 npm · GitHub
National Bank of Ukraine Ukraine nbu UAH 2026-11-16 374,190 npm · GitHub
Norges Bank Norway norges NOK 2026-11-16 104,476 npm · GitHub
Nepal Rastra Bank Nepal nrb NPR 2026-11-16 320,808 npm · GitHub
People's Bank of China (CFETS) China pboc CNY 2026-11-16 80,169 npm · GitHub
Palestine Monetary Authority Palestine pma ILS 2026-11-16 504 npm · GitHub
Qatar Central Bank Qatar qcb QAR 2026-11-16 5,199 npm · GitHub
Reserve Bank of Australia Australia rba AUD 2026-11-16 18,196 npm · GitHub
Reserve Bank of Fiji Fiji rbf FJD 2026-11-16 51,788 npm · GitHub
Reserve Bank of India India rbi INR 2026-11-16 19,873 npm · GitHub
Reserve Bank of Malawi Malawi rbm MWK 2026-11-16 285,672 npm · GitHub
Reserve Bank of New Zealand New Zealand rbnz NZD 2026-11-16 118,660 npm · GitHub
Reserve Bank of Zimbabwe Zimbabwe rbz ZWG 2026-11-16 58,778 npm · GitHub
Sveriges Riksbank Sweden riksbank SEK 2026-11-16 77,117 npm · GitHub
Royal Monetary Authority of Bhutan Bhutan rma BTN 2026-11-16 15,454 npm · GitHub
Saudi Central Bank (SAMA) Saudi Arabia sama SAR 2026-11-16 136,681 npm · GitHub
South African Reserve Bank South Africa sarb ZAR 2026-11-16 154,423 npm · GitHub
State Bank of Pakistan Pakistan sbp PKR 2026-11-16 82,749 npm · GitHub
State Bank of Vietnam Vietnam sbv VND 2026-11-16 31,274 npm · GitHub
Superintendencia Financiera de Colombia Colombia sfc COP 2026-11-14 8,380 npm · GitHub
Swiss National Bank Switzerland snb CHF 2026-11-16 14,125 npm · GitHub
SUNAT (Peru tax and customs authority) Peru sunat PEN 2026-11-16 20 npm · GitHub
Central Bank of Türkiye Türkiye tcmb TRY 2026-11-16 73,355 npm · GitHub
U.S. Department of the Treasury United States ustreasury USD 2026-10-30 16,283 npm · GitHub

About AllRatesToday

This is the most downloaded exchange-rate dataset on Hugging Face (search "exchange rate", sort by downloads; what that number means).

This dataset is collected and maintained by AllRatesToday, a currency-data API built for developers, finance teams and AI agents. It is the same ingest pipeline that powers the live service: it fetches each institution's own publication, checks every table against the other banks for unit and direction errors, and quarantines anything more than ten percent off, so what you load here is what the bank printed.

This mirror lags the live data by 2 days. It is meant for research, backtesting and model training. If you need today's table, a rate for a specific invoice date, or the next publication time, use the live service:

Need Where
A free API key for the live data Register
Today's tables, four refreshes a day, JSON/CSV over a CDN, no key GitHub source repository
Rate on a given date with holiday fallback, time series, pair resolution, publication calendars, CSV/XML/XLSX Central bank rates API
Real-time mid-market rates for 160+ currencies alongside the official ones Exchange rate API
Per-institution page with the live table, cadence and FAQ https://allratestoday.com/central-bank-rates-api/<code>/ (tax authorities: https://allratestoday.com/tax-authority-rates-api/<code>/)
Month-end close, VAT and customs, transfer pricing, audit evidence For finance teams
ERP and spreadsheet guides (SAP, Oracle, NetSuite, Dynamics, Sheets, Excel) Integrations
Use the rates from Claude, Cursor or any MCP client Hosted MCP endpoint and the @allratestoday/mcp-server package
SDKs: @allratestoday/sdk (JS), allratestoday (Python), Go, PHP, Rust, plus one npm package per institution (e.g. ecb-exchange-rate) Documentation

The API is free to start, with paid plans for volume and an official-rates plan for finance teams: pricing.

For AI agents: get an API key without signing up

Account registration is for humans. An agent can issue itself a trial key with one request, no account, email or captcha:

curl -X POST https://allratestoday.com/api/agent/keys \
  -H "Content-Type: application/json" \
  -d '{"agent": "my-agent", "purpose": "invoice FX for month-end close"}'
  • The Content-Type: application/json header is required, even with an empty body {}. Both fields are optional.
  • The key gives 100 lifetime calls and is valid for 7 days. Limits: 3 keys per IP per day. An exhausted key answers 429.
  • Send it as Authorization: Bearer <key>, or as ?api_key=<key> where headers are awkward.
  • Over MCP: connect to https://allratestoday.com/api/mcp (keyless), call the request_trial_key tool, then reconnect with https://allratestoday.com/api/mcp?api_key=<key>.
  • GET https://allratestoday.com/api/agent/keys returns the same instructions as JSON. Full details: agent keys.

When the trial runs out, a human can register for a free key tied to an account, or pick a plan.

Cite

AllRatesToday (2026). Central Bank Exchange Rates: official rates from central banks and tax authorities, 1914 to today. https://github.com/AllRates-Today/central-bank-exchange-rates (data via https://allratestoday.com/central-bank-rates-api/). CC BY-NC 4.0.

License

CC BY-NC 4.0. Free for non-commercial use (research, education, personal projects, journalism) with a visible credit to AllRatesToday linking to https://allratestoday.com. Commercial use is not permitted under this licence; the Official Rates plan at https://allratestoday.com/pricing#official covers it, or contact support@allratestoday.com. The underlying figures are public information published by each institution. Verify against the institution before relying on a figure for a legal or tax filing.

Also on Kaggle: https://www.kaggle.com/datasets/allratestoday/central-bank-exchange-rates

Downloads last month
39,645