Fixed wrong conversion factor from GBp to GBP. NOW WORKING :)
This commit is contained in:
parent
4a1d24c562
commit
7837d0ee40
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user