I was trying to cancel the Cover Order when I wanted to exit the position. But there is an exception being thrown saying "Cover orders cannot be canceled".
What is the right way to exit CO orders? PS: Im currently trying to cancel the cover order and not the parent order.
Is there a limit to how many number of times we can modify a CO order? I tried to change Trigger price every one minute once. I ended up in Exception "Maximum allowed order modifications exceeded"
You can know more here.
I'm sending parent order id as well
Dictionary Cancel = kite.CancelOrder(
OrderId: XXXXX,
ParentOrderId: XXXXX
);
this is the code snippet i am using