Fixed wrong conversion factor from GBp to GBP. NOW WORKING :)

This commit is contained in:
BlueFox 2024-01-19 18:53:37 +01:00
parent 4a1d24c562
commit 7837d0ee40
Signed by: BlueFox
GPG Key ID: 327233DA85435270

View File

@ -15,8 +15,8 @@ class SimpleStockData:
:param to_currency:
currency to convert rates to (e.g. EUR)
"""
self.currency_exceptions = {"GBp": 0.001} # dict where currencies with lowercase letters and how they convert to
# their uppercase equivalent (e.g. GBp is 0.001/1% of one GBP)
self.currency_exceptions = {"GBp": 0.01} # dict where currencies with lowercase letters and how they convert to
# their uppercase equivalent (e.g. GBp (pence) is 0.01/1% of one GBP (pound)
self.ticker_list = ticker_list
self._to_currency = to_currency.upper() # make it uppercase