Winston B commited on
Commit
2cfdae8
·
1 Parent(s): 4c5e858

Update model_90m to take 30m candles

Browse files
Files changed (1) hide show
  1. model_90m.py +1 -1
model_90m.py CHANGED
@@ -236,7 +236,7 @@ def get_data():
236
  last_date = last_date + datetime.timedelta(days=1)
237
  # Get incremental data
238
  spx1 = yf.Ticker('^GSPC')
239
- yfp = spx1.history(start=last_date, interval='90m')
240
  # Concat current and incremental
241
  df_30m = pd.concat([fr, yfp])
242
  # Get the first 30 minute bar
 
236
  last_date = last_date + datetime.timedelta(days=1)
237
  # Get incremental data
238
  spx1 = yf.Ticker('^GSPC')
239
+ yfp = spx1.history(start=last_date, interval='30m')
240
  # Concat current and incremental
241
  df_30m = pd.concat([fr, yfp])
242
  # Get the first 30 minute bar