Fixed glitch reading AlphaVantage API key (#573)

* Fixed glitch reading AlphaVantage API key

* Bug fix

Co-authored-by: Colin Delahunty <colindelahunty@Colins-Air.attlocal.net>
This commit is contained in:
colin99d
2021-07-28 09:40:40 -04:00
committed by GitHub
parent ceb506597e
commit 8408c5ed3d

View File

@@ -666,9 +666,9 @@ def check_api_keys():
key_dict["ALPHA_VANTAGE"] = "Not defined"
else:
df = TimeSeries(
key=cfg.API_KEY.ALPHAVANTAGE, output_format="pandas"
key=cfg.API_KEY_ALPHAVANTAGE, output_format="pandas"
).get_intraday(symbol="AAPL")
if df.empty:
if df[0].empty:
key_dict["ALPHA_VANTAGE"] = "defined, test failed"
else:
key_dict["ALPHA_VANTAGE"] = "defined, test passed"