Currently i am trying to get price data for about 1800 securities together. The below code works when i have say 100 securities but throwing an error with high number of securities. Any suggestions ?
try:
price_data = data.history(context.securities, 'close',
context.params['indicator_lookback']+1,
context.params['indicator_freq'])
volume_data = data.history(context.securities, 'volume',
context.params['indicator_lookback']+1,
context.params['indicator_freq'])
except:
print("error in price data")
return
Error
Error in strategy - Traceback (most recent call last):
File "momentum_and_volatility.py", line 84, in run_strategy
File "momentum_and_volatility.py", line 96, in generate_signals
File "blueshift_data/assets/_adjustments.pyx", line 323, in blueshift_data.assets._adjustments.get_adjusted_series
File "blueshift_data/assets/_adjustments.pyx", line 353, in blueshift_data.assets._adjustments.get_adjusted_series
IndexError: index 0 is out of bounds for axis 0 with size 0
Blueshift Alert[2022-01-03 09:45:00+05:30] ERROR in algorithm:Fatal error, will exit.
Blueshift Alert[2022-10-05 15:34:35.549515+05:30] WARNING :Shutting down Blueshift gracefully.