-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds Algorithm Exception Handler #8239
Comments
Hi @AlexCatarino, @Martin-Molinero I have raised the pull request for this issue. |
Hi @keshavdalmia10, By the way, your #8266 doesn't have a unit and/or a regression test to show it solves the issue. |
I had pinged you on Discord for it. |
Hi @Martin-Molinero , can you guide a little over here on how to make the test case for it? |
Expected Behavior
Be able to take action when a runtime exception is raised.
Actual Behavior
If a runtime error occurs, we cannot take actions such as close positions and open orders.
Potential Solution
Add IAlgorithm.OnError method.
Reproducing the Problem
In this case, on_end_of_algorithm is not called, so we cannot close positions and open orders if we want to.
Checklist
master
branchThe text was updated successfully, but these errors were encountered: