I'm just checking the 'Go Live' feature on Blueshift but I'm getting the below error:
You cannot proceed further as we found some errors in your code.
- Error : 418 - {"message":"safe compile error: error in SMA_NYSE.py, undefined variables found HistoryWindowStartsBeforeData"}
The strategy and its code was already there on Blueshift so I guess there shouldn't be any errror in the code. Also, The backtest runs fine but going live throws error.
How do I resolve this error?
This is uderstandably a bit odd to figure out! To fix this error, please remove the import statement as well as any reference to the HistoryWindowStartsBeforeData exception class in your strategy code.
The backtesting on blueshift runs on zipline engine which defines this exception class. The live trading runs on blueshift core python engine, which does not. Our go-live automated check captures this issue and highlights this as a teapot error.
If the above step does not fix your issue, please let us know (or give a shout to blueshift-support@quantinsti.com) with more information.
Thanks! Will send a mail if the above fix doesn't work.
This looks like may be the FXCM token has expired - the server refused the square-off and also the streaming data source has gone stale. Can start a fresh execution? If you get an unauthorized error, then it confirms this, and you will need to reset your FXCM token.