mirror of
https://github.com/andrewkdinh/fund-indicators.git
synced 2024-11-22 01:54:19 -08:00
Update main.py
This commit is contained in:
parent
e865c83662
commit
ec893e4863
4
main.py
4
main.py
@ -80,7 +80,7 @@ API Keys:
|
|||||||
Monthly Bandwidth = 5 GB
|
Monthly Bandwidth = 5 GB
|
||||||
Hourly Requests = 500
|
Hourly Requests = 500
|
||||||
Daily Requests = 20,000
|
Daily Requests = 20,000
|
||||||
Symbol Requests = 500
|
Symbol Requests = 500
|
||||||
Quandl API Key: KUh3U3hxke9tCimjhWEF
|
Quandl API Key: KUh3U3hxke9tCimjhWEF
|
||||||
Intrinio API Key: OmNmN2E5YWI1YzYxN2Q4NzEzZDhhOTgwN2E2NWRhOWNl
|
Intrinio API Key: OmNmN2E5YWI1YzYxN2Q4NzEzZDhhOTgwN2E2NWRhOWNl
|
||||||
|
|
||||||
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user