From 96227baffbf71b8478763f231db98d32a2f54998 Mon Sep 17 00:00:00 2001 From: Ben Kulbertis Date: Mon, 1 Mar 2021 00:15:27 -0700 Subject: [PATCH] Fixed undefined timeseries var --- gamestonk_terminal.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gamestonk_terminal.py b/gamestonk_terminal.py index a2f4f17d4c9..171d0b3890d 100644 --- a/gamestonk_terminal.py +++ b/gamestonk_terminal.py @@ -310,6 +310,7 @@ def main(): b_quit = pm.pred_menu(df_stock, s_ticker, s_start, s_interval) # If stock data is intradaily, we need to get data again as prediction techniques work on daily adjusted data else: + ts = TimeSeries(key=cfg.API_KEY_ALPHAVANTAGE, output_format='pandas') df_stock_pred, _ = ts.get_daily_adjusted(symbol=s_ticker, outputsize='full') df_stock_pred = df_stock_pred.sort_index(ascending=True) df_stock_pred = df_stock_pred[s_start:]