Lean.Brokerages.InteractiveBrokers icon indicating copy to clipboard operation
Lean.Brokerages.InteractiveBrokers copied to clipboard

IB Orders Rejected By Code 200 Do Not Lean to Algorithm Termination

Open AlexCatarino opened this issue 4 years ago • 2 comments

Expected Behavior

If an order placed to IB is not accepted because of "No security definition has been found for the request", it is set to invalid.

Actual Behavior

If an order placed to IB is not accepted because of "No security definition has been found for the request", it is marked as an exception and the algorithm is terminated.

Potential Solution

If the error message comes from IBPlaceOrder, the order is set to Invalid.

Checklist

  • [x] I have completely filled out this template
  • [x] I have confirmed that this issue exists on the current master branch
  • [x] I have confirmed that this is not a duplicate issue by searching issues
  • [x] I have provided detailed steps to reproduce the issue

AlexCatarino avatar Dec 30 '20 16:12 AlexCatarino

+1

AmazingAbhi avatar Jun 04 '21 15:06 AmazingAbhi

+1

Vadimber2 avatar Jan 08 '22 18:01 Vadimber2