My algo produced "TimeoutException: Too much time spent in handle_data and/or scheduled functions. 50 second limit exceeded.
There was a runtime error on line 174." in live paper trading.
Line 174:
hist = data.history(context.security_list, "close", hist_window, "1d")
The error is not generated in backtesting.