I have a LT CO entering @ Market price of 1450 and trigger price of 1430. When the Market moves to 1460, I want to exit the position. Do I have to place a new Sell order @ Market and that will square off the position or do I need to modify the existing Sell order ?
Kite Server will modify your Trigger Pending Stoploss order(TrgPrice:1430) to Market Order(Ltp:1460), So that your sell order will be completed, thus closing CO Position.
No need to place sell order market, if you place, this will initiate new position.
Here i.e. in case of CO, DELETE means not CANCEL but Modifying to Market Order Type.
For Regular Order DELETE means CANCEL of that Order.
You need to send DELETE Request
Example:-
"https://api.kite.trade/orders/co/151220000000000?api_key=xxx&access_token=yyy&parent_order_id=151210000000000"
Kite Server will modify your Trigger Pending Stoploss order(TrgPrice:1430) to Market Order(Ltp:1460), So that your sell order will be completed, thus closing CO Position.
No need to place sell order market, if you place, this will initiate new position.
Here i.e. in case of CO, DELETE means not CANCEL but Modifying to Market Order Type.
For Regular Order DELETE means CANCEL of that Order.
Hope this clears.