From 7837d0ee4029f4cfa2f6d33137432805a9ea13e0 Mon Sep 17 00:00:00 2001 From: BlueFox Date: Fri, 19 Jan 2024 18:53:37 +0100 Subject: [PATCH] Fixed wrong conversion factor from GBp to GBP. NOW WORKING :) --- SimpleStockData.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SimpleStockData.py b/SimpleStockData.py index 43ed61e..de88b78 100755 --- a/SimpleStockData.py +++ b/SimpleStockData.py @@ -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