list_currencies

list_currencies(rates=None)

List the currencies in a rate table.

A quick way to see which codes convert_currency() will accept from the bundled snapshot (or from a rates table you pass). Aliases such as “RMB” are not listed; they resolve to their ISO code (here “CNY”).

Parameters

Name Type Description Default
rates dict or pandas.DataFrame Rate table; None (default) for the bundled currency_rates. None

Returns

Name Type Description
list of str Currency codes.

See Also

currency_rates, convert_currency

Examples

>>> list_currencies()