Currency

The schema for ISO 4217 currencies — the vocabulary the generated `currencies` code list at codes.kanonak.org is typed with. An amount of money is meaningless without its currency, and a currency is a coded entry with a lifecycle (the Deutsche Mark was withdrawn in 2002), so it is a reference, not a string.

ISO 4217 assigns each currency a three-letter code (USD, EUR, JPY), a three-digit numeric code, and the number of minor units (the cents in a dollar). The maintenance agency publishes a current list and a historic list of withdrawn currencies with their withdrawal dates; the currencies package at codes.kanonak.org is both, projected by its producer, and this package is the schema. A Currency entry's code is the alphabetic code; it carries its Numeric Code, Minor Units where the standard defines them, and Is Fund for the codes that denote funds rather than money (USN, CHE). A withdrawn currency carries owl.deprecated and its Withdrawn On date as the standard writes it — a month, a year, or a range.

CurrencyA currency (or fund) with an ISO 4217 code. The code is the alphabetic code (`EUR`); the label is the currency's name as the standard gives it.Is FundWhether the code denotes a fund or unit of account rather than a circulating currency.Minor UnitsThe number of digits after the decimal separator (2 for a dollar's cents, 0 for the yen, 3 for the dinar). Absent where the standard gives none.Numeric CodeThe three-digit ISO 4217 numeric code, kept as written (`008` for the lek).Withdrawn OnWhen the currency was withdrawn, as the standard writes it — usually a year and month (`2002-02`), sometimes a year or a range. Accompanies owl.deprecated.