How to exit 2nd leg order of cover order.

vishwash_yadav
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.

Help me out to exit the 2nd leg of cover order.
Tagged:
  • vishwash_yadav
    It exited when i passed all parameter including optional like (Variety and ParentOrderId)

    Either please make all parameters are mandatory or it should work even if i pass only mandatory like OrderId.
  • ramatius
    I am facing same issue. Perhaps you can work around the problem. See this thread.
  • sujith
    @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.
  • vishwash_yadav
    Thanx a lot sujith.
This discussion has been closed.