Get currency symbol by currency code eg: USD -> $
$ pip3 install currency-symbols
from currency_symbols import CurrencySymbols
dollarSymbol = CurrencySymbols.get_symbol('USD')
print(dollarSymbol)
# Output:
# $
euroSymbol = CurrencySymbols.get_symbol('EUR')
print(euroSymbol)
# Output:
# €
britishPoundSymbol = CurrencySymbols.get_symbol('GBP')
print(britishPoundSymbol)
# Output:
# £
bitcoinSymbol = CurrencySymbols.get_symbol('BTC')
print(bitcoinSymbol)
# Output:
# ฿
Interested in contributing to this project? You can log any issues or suggestion related to this library here
Read our contributing guide on getting started with contributing to the codebase
Inspired by work of @bengourley on currency-symbol-map