From e865c83662768119bb87bbbbcdca84c39ee91b7e Mon Sep 17 00:00:00 2001 From: Andrew Dinh Date: Fri, 28 Jun 2019 18:38:17 +0000 Subject: [PATCH] Update main.py --- main.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/main.py b/main.py index 8e7eeed..934d7ee 100644 --- a/main.py +++ b/main.py @@ -1218,9 +1218,7 @@ def riskFreeRate(): Functions.fromCache(f) json_data = f.text loaded_json = json.loads(json_data) - riskFreeRate = (loaded_json['dataset']['data'][0][1])/100 - riskFreeRate = riskFreeRate * 100 - riskFreeRate = round(riskFreeRate, 2) + riskFreeRate = round(float(loaded_json['dataset']['data'][0][1])),2) print('Risk-free rate:', riskFreeRate, end='\n\n') if f.status_code != 200: