In Quantopian, One receives e-mail message if algorithm stops during some Runtime error. Is there anything like this on Quantconnect, is it automatic or do i have to add something in script?
QUANTCONNECT COMMUNITY
In Quantopian, One receives e-mail message if algorithm stops during some Runtime error. Is there anything like this on Quantconnect, is it automatic or do i have to add something in script?
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
Petter Hansson
Yes. Since your script can crash it's good that surrounding code handles this.
Live Algorithm Error
Hello XXX,
Sorry your live algorithm had a runtime error in project 'YYY'. It has been stopped but your positions may still be open! You should inspect your brokerage, code and restart your algorithm.
Sourabh Jain
Thank Petter,
So do I have to add something, how do I ensure that?
Petter Hansson
The crash notification is there always so you don't have to do anything.
You can also send custom notifications via code (I think it's called NotificationManager), that doesn't help if script crashes though.
Rob Robinson
Does the runtime crash notication still work? I've had several runtime crashes lately and have never gotten any emails? Is these something that needs to be enabled / setup for this?
i.e.Â
Runtime Error: The maximum number of attempts for brokerage cash sync has been reached. Stack Trace: System.Exception: The maximum number of attempts for brokerage cash sync has been reached.
at QuantConnect.Lean.Engine.TransactionHandlers.BrokerageTransactionHandler.ProcessSynchronousEvents () [0x00139] in <83ad711e1caf49579d98fd95a20bdcf6>:0
at QuantConnect.Lean.Engine.AlgorithmManager.Run (QuantConnect.Packets.AlgorithmNodePacket job, QuantConnect.Interfaces.IAlgorithm algorithm, QuantConnect.Lean.Engine.DataFeeds.ISynchronizer synchronizer, QuantConnect.Lean.Engine.TransactionHandlers.ITransactionHandler transactions, QuantConnect.Lean.Engine.Results.IResultHandler results, QuantConnect.Lean.Engine.RealTime.IRealTimeHandler realtime, QuantConnect.Lean.Engine.Server.ILeanManager leanManager, QuantConnect.Lean.Engine.Alpha.IAlphaHandler alphas, System.Threading.CancellationToken token) [0x008be] in <83ad711e1caf49579d98fd95a20bdcf6>:0
at QuantConnect.Lean.Engine.Engine+<>c__DisplayClass9_2.<Run>b__9 () [0x000ca] in <83ad711e1caf49579d98fd95a20bdcf6>:0
Â
Jared Broad
Yes still working well @Rob, and don't need to do anything. I just retested for you. If you have a specific issue with your algorithm please send a support ticket with the project attached.Â
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
Rob Robinson
Thanks Jared, I'll keep close tabs on it, although it appears to be related to an IB related system error (not code from my script). Something about a maximum retry to sync cash with IB, etc (see above error message). If it happens again I'll be sure to post a support ticket - thanks again!
Sourabh Jain
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!