DataStandardizer

Access currency metadata

There is metadata associated with each member of the Iso4217CurrencyCurrent and Iso4217CurrencyHistoric enums. You can retrieve this metadata using extension methods on an indivisual currency code.

Currency name

Every currency has a name as defined by the ISO 4217 standard. You can retrieve this name using an extension method on a currency code.

var currencyName = Iso4217CurrencyCurrent.ILS.GetCurrencyName();

Names can also be retrieved for historical currencies.

var oldCurrencyName = Iso4217CurrencyHistoric.ZWD.GetCurrencyName();

Minor units

Minor units is the number of digits for the value of the sub-units in a monetary value for a specific currency. This is typically expressed as the fractional component of a decimal number. The number of minor units typically ranges from 0 to 3 digits.

You can get the number of minor units for a currency using an extension method on the currency code.

var minorUnits = Iso4217CurrencyCurrent.IQD.GetMinorUnits();

Funds code

The currency code enums includes funds codes alongside regular currency codes. You can tell when a code in the currency enum is a funds code or not by using an extension method.

var isFundsCode = Iso4217CurrencyCurrent.BOV.IsFundCode();

National & Supranational currency codes

Currency codes in use by countries or groups of countries can be categorized as national or supranational. To check if a currency code is a national currency code, use the provided extension method:

var isNationalCurrencyCode = Iso4217CurrencyCurrent.DJF.IsNationalCurrency();

If, however, a currency code is in use by a supranational collective, you can check this status with a different extension method:

var isSupranationalCurrencyCode = Iso4217CurrencyCurrent.XAF.IsSupranationalCurrency();