From 8408c5ed3dd67bf7dba647f7d0f45f45c424f38a Mon Sep 17 00:00:00 2001 From: colin99d <72827203+colin99d@users.noreply.github.com> Date: Wed, 28 Jul 2021 09:40:40 -0400 Subject: [PATCH] Fixed glitch reading AlphaVantage API key (#573) * Fixed glitch reading AlphaVantage API key * Bug fix Co-authored-by: Colin Delahunty --- gamestonk_terminal/main_helper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"