About Cover order cancelation

deepmangukiya
deepmangukiya edited September 2020 in .Net API client
Hello Team,

I m trying to cancel cover order with order id and parent order id but getting exception. please find out here with attachment regarding the issue.

Exception is Order can not be cancelled it is being processed. try later.

thanks.




  • sujith
    Are you sure the order is still pending? This error message shows up when the order is not in OPEN or TRIGGER PENDING status.
  • deepmangukiya
    order was active
  • deepmangukiya
    deepmangukiya edited September 2020
    because i place order at market price so it is active
    so tell me which order id should i use to cancel the cover order?
  • sujith
    If you placed order at market price then it would have already completed right?
    If the parent order is already executed then you need to exit the order and not cancel the order.
  • deepmangukiya
    ohk so please tell me how can i exit order by using which method ?
  • sujith
    Are you passing the order id and parent order id while canceling the order?
    This is equivalent to exiting the order.

    If you are then you need to open the Kite web and check if the second leg order is still pending.
  • deepmangukiya
    yes i do . from your kite library here is the code for c#.net library

    // CO MARKET exiting

    kite.CancelOrder(
    OrderId: "1234",
    Variety: Constants.VARIETY_BO,
    ParentOrderId: "5678"
    );


    i use the same. it was confusing for me because commented header is CO market exiting and variety is BO in your git hub library. but i tried both BO and CO but still not working .
  • sujith
    Can you private message the second leg order id and client id? We will check and get back to you.
    You need to send co as the variety. I think .NET documentation is wrong if it says BO
This discussion has been closed.