mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-01 23:12:21 +00:00
Fixed undefined timeseries var
This commit is contained in:
@@ -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:]
|
||||
|
||||
Reference in New Issue
Block a user