Hi, I have placed an cover order and with the help of history i got 2nd leg order id. Now i want to exit that order therefore i called CancelOrder method to do so but it didn't exit that even after getting success response.
@ramatius, It seems to be working fine at our end and your issue is with kiteconnectphp. This query is about kiteconnectdonet. @vishwash_yadav, Once a first leg order is placed in cover or bracket order, it can't be canceled. It can only be exited. If you pass just the first leg order id, it can be canceled if the first leg is not executed(like in case of bracket order). To exit a second leg order, it is necessary to pass variety and parent order id whereas for a normal order it is not required.
Either please make all parameters are mandatory or it should work even if i pass only mandatory like OrderId.
It seems to be working fine at our end and your issue is with kiteconnectphp. This query is about kiteconnectdonet.
@vishwash_yadav,
Once a first leg order is placed in cover or bracket order, it can't be canceled. It can only be exited.
If you pass just the first leg order id, it can be canceled if the first leg is not executed(like in case of bracket order).
To exit a second leg order, it is necessary to pass variety and parent order id whereas for a normal order it is not required.