Update main.py

This commit is contained in:
Andrew Dinh 2019-06-28 18:41:10 +00:00 committed by GitHub
parent e865c83662
commit ec893e4863
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1218,7 +1218,7 @@ def riskFreeRate():
Functions.fromCache(f) Functions.fromCache(f)
json_data = f.text json_data = f.text
loaded_json = json.loads(json_data) loaded_json = json.loads(json_data)
riskFreeRate = round(float(loaded_json['dataset']['data'][0][1])),2) riskFreeRate = round(float(loaded_json['dataset']['data'][0][1]),2)
print('Risk-free rate:', riskFreeRate, end='\n\n') print('Risk-free rate:', riskFreeRate, end='\n\n')
if f.status_code != 200: if f.status_code != 200: