how to exit cover(stoploss) order after execution

how to exit cover order in algorithm kitenet (vb .net )after execution of order.
kite.ExitCo gives error. it wants stoploss order id. how to get it?
  • HowUTrade

    For exiting you can pass id of any childorder i.e. Target or Stoploss or csv of childorders.

    Assume you have Parent OrderId i.e. Entry OrderId
    Just call the GetChildOrders to get comma seperated list of childorders and pass it to ExitCO method

    ChildOrders = Kite.GetChildOrders(ParentOrderId)
Sign In or Register to comment.