mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 12:40:35 +00:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user