finanza/currency/catalog

A static snapshot of 15 major ISO 4217 currencies.

The snapshot is informational and is not refreshed against the ISO 4217 maintenance register. For currencies outside the catalogue, build a Currency directly with currency.new_currency.

Values

pub fn all() -> List(currency.Currency)

All currencies in the static catalogue, in the order they appear on this page.

pub fn aud() -> currency.Currency

Australian Dollar — AUD, exponent 2, symbol $.

pub fn brl() -> currency.Currency

Brazilian Real — BRL, exponent 2, symbol R$.

pub fn cad() -> currency.Currency

Canadian Dollar — CAD, exponent 2, symbol $.

pub fn chf() -> currency.Currency

Swiss Franc — CHF, exponent 2, symbol CHF.

pub fn cny() -> currency.Currency

Renminbi — CNY, exponent 2, symbol ¥.

pub fn eur() -> currency.Currency

Euro — EUR, exponent 2, symbol .

pub fn find(code code: String) -> Result(currency.Currency, Nil)

Look up a catalogue currency by its ISO 4217 alpha-3 code. Codes are compared case-sensitively in upper case.

pub fn gbp() -> currency.Currency

Pound Sterling — GBP, exponent 2, symbol £.

pub fn hkd() -> currency.Currency

Hong Kong Dollar — HKD, exponent 2, symbol HK$.

pub fn inr() -> currency.Currency

Indian Rupee — INR, exponent 2, symbol .

pub fn jpy() -> currency.Currency

Japanese Yen — JPY, exponent 0, symbol ¥.

pub fn krw() -> currency.Currency

South Korean Won — KRW, exponent 0, symbol .

pub fn mxn() -> currency.Currency

Mexican Peso — MXN, exponent 2, symbol $.

pub fn sgd() -> currency.Currency

Singapore Dollar — SGD, exponent 2, symbol S$.

pub fn usd() -> currency.Currency

US Dollar — USD, exponent 2, symbol $.

pub fn zar() -> currency.Currency

South African Rand — ZAR, exponent 2, symbol R.

Search Document