how to exit cover(stoploss) order after execution

kulguru
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
    @kulguru

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

    Example:
    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)
    Kite.ExitCO(ChildOrders)
Sign In or Register to comment.