Is there a python package that provides list of all (or fairly complete) currencies with the symbols (like "$" for USD).
There are excellent pycountry, py-moneyed and ccy but these do not have symbols.
Every world currency has an assigned code, used on currency exchange markets, and a currency code symbol which is typically used when pricing goods in a store, or dishes in a restaurant for example.
How many currency symbols are there in the world? There are 180 currencies in the world circulating 197 countries. Eurochange sell over 70 of these currencies.
For other dollar currencies, '$' should be prefixed with the country abbreviation. Full version. Abbreviation. Australian dollars. A$
I created Forex-python package which maintains all latest Currency code and its sign.
>>> from forex_python.converter import CurrencyCodes
>>> c = CurrencyCodes()
>>> print c.get_symbol('GBP')
£
And you can convert amount from one currency to other.
>>> from forex_python.converter import CurrencyRates
>>> c = CurrencyRates()
>>> c.convert('USD', 'INR', 10)
674.73
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With