Authority: SIX Financial Information is the ISO 4217 maintenance agency, and it publishes the current list as XML. I used List One (current codes and minor units, published 2026-09-17, 178 codes) and List Three (withdrawn codes, published 2026-01-01). parse_iso.py downloads both. Run on 2026-12-04, Node 26.11.1 and Python 3.12. Raw output is in output.txt and run.sh reproduces it.
Changes since 2023, per List Three: Croatia HRK→EUR (2023-01), Sierra Leone SLL→SLE (2023-12), Zimbabwe ZWL→ZWG (2024-09), Curaçao and Sint Maarten ANG→XCG (2025-03) and Bulgaria BGN→EUR (2026-01). The new code XAD (Arab Accounting Dinar) is in List One.
Code lists and minor units
| library | weekly dl | last publish | current codes missing | withdrawn still listed (of 12 checked) | minor-unit ≠ ISO | |---|---|---|---|---|---| | currency-codes 2.2.0 (npm) | 1,074,212 | 2024-10-23 | XAD XCG | BGN ANG CUC | 0 | | dinero.js 2.0.2 dinero.js/currencies | 912,534 | 2026-03-13 | only X-funds/metals | BGN | MGA, MRU = 1 (deliberate base-5 model) | | currency-symbol-map 5.1.0 | 787,478 | 2022-06-14 | XAD XCG SLE VED ZWG … (17) | all 12 | – | | currency-formatter 1.5.9 | 197,189 | 2022-06-14 | 31 incl. XCG SLE ZWG VES MRU | 9 | 20 (XOF/XAF/XPF/RWF/UGX/PYG formatted with 2 decimals; IDR/KHR/LAK/MZN/LKR with 0; IQD 2≠3) | | py-moneyed 3.0 (used by django-money 3.6.2) | – | 2022-11 | XAD XCG ZWG | all 12 | 0 | | babel 2.19.0 (CLDR) | – | 2026-11-24 | 0 | all 12 (CLDR keeps history) | 15 | | Intl (Node 26, CLDR 48) | – | – | 22 (fund/metal codes, XAD, VED) | 6 | 16 | | pycountry 26.2.16, iso4217 1.16.20260101 | – | – | 0 | 0 | 0 |
Country → currency (the 6 countries that changed)
ISO today: BG EUR, HR EUR, CW XCG, SX XCG, ZW ZWG, SL SLE.
countries-list 3.4.1 (.currency[0]) BG=EUR HR=EUR CW=XCG SX=XCG ZW=ZWG SL=SLE -> wrong 0/6world-countries 5.1.0 (first key) BG=BGN ✗ HR=EUR CW=ANG ✗ SX=ANG ✗ ZW=BWP ✗ SL=SLL ✗ -> wrong 5/6country-to-currency 3.0.2 BG=EUR HR=EUR CW=XCG SX=XCG ZW=ZWG SL=SLE -> wrong 0/6currency-codes 2.2.0 .country(name) BG=BGN ✗ HR=EUR CW=ANG ✗ SX=ANG ✗ ZW=ZWG SL=SLE -> wrong 3/6babel get_territory_currencies(k, 2026-12-04) ... ZW=USD ✗ (CLDR: USD is Zimbabwe's main tender) -> 1/6py-moneyed Currency.countries CW=(none) ✗ SX=(none) ✗ ZW=USD ✗ -> 3/6- world-countries is fixed on GitHub but not on npm.
mledoze/countriesmaster has BGEUR, CW/SXXCGand ZW includingZWG. The npm package is still 5.1.0 (2025-02-26), whose Zimbabwe entry listsZWB, which isn't an ISO code, and no ZWG. Read master'scountries.jsonor pin a git commit if you need current data. - currency-codes: the XCG gap has been an open issue since 2024 (freeall/currency-codes#45). Nobody has reported that
.country('Bulgaria')still returns BGN; I found no issue. - A default-currency-by-country checkout built on world-countries or currency-codes still shows Bulgarian shoppers lev prices 11 months after the euro switch.
The `Intl` minor-units trap (money, not formatting)
A common snippet derives the minor-unit exponent from Intl: new Intl.NumberFormat('en', {style: 'currency', currency}).resolvedOptions().maximumFractionDigits. That's CLDR's *display* digits, and for 16 currencies they differ from ISO's *accounting* minor units (minor_units_trap.mjs):
HUF: Intl digits 0, ISO minor 2 -> 1500 HUF as minor units: Intl 1500, ISO 150000 (x100)IDR: Intl digits 0, ISO minor 2 -> ... (x100) PKR, COP, IRR, LBP, ALL: sameIQD: Intl digits 0, ISO minor 3 -> 1500 IQD as minor units: Intl 1500, ISO 1500000 (x1000)APIs that take ISO minor units then get an amount 100x (IQD: 1000x) too small. babel's get_currency_precision has the same 15 differences. Use ISO's CcyMnrUnts (pycountry has no minor units; the iso4217 PyPI package or List One itself does), or your payment provider's own table.
What the docs say
- SIX/ISO publish the lists and amendment notices. They don't say which libraries are current.
- CLDR's
supplementalData.xml<fractions>table sets e.g.AFN/ALLtodigits="0". ISO says 2. babel'sget_currency_precisiondocstring says it's "the number of decimals found after the decimal point in the currency's format pattern", so it's a formatting value. Neither babel nor MDN'sresolvedOptionspage mentions ISO minor units. - currency-codes, world-countries and py-moneyed don't document a data date. You can only infer it from the publish date.
Caveats
"Withdrawn still listed" is harmless for display-only symbol maps. It's a bug when the list is used to *validate* a currency for new transactions. dinero.js's MGA/MRU exponent 1 with base 5 is an intentional model of the non-decimal subunit, not a stale value. Zimbabwe: ISO says ZWG, but USD is widely used, so babel/CLDR's USD answer is defensible.