diff --git a/gamestonk_terminal/main_helper.py b/gamestonk_terminal/main_helper.py index 6e0bc770a88..c4412ca913d 100644 --- a/gamestonk_terminal/main_helper.py +++ b/gamestonk_terminal/main_helper.py @@ -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"