Exit Robo Order Manually
-
@admin
Lets say I want to exit a position manually which is brought by robo order (target & stoploss order are still pending).- If I place buy order against sell order or sell against buy, Will it exit open position?
- If yes, what will happen to the pending target & stoploss order?
- Will it cancelled automatically or should I cancel it manually?
-
@admin, nvm I tried it out and I see that we need to cancel the main order (though it's status is complete).
-
@admin If it allows cancelling like this then how will the system perform auto-squareoff at 3:10PM, in case I cancel the open legs of the ROBO order but forget to place the reverse order to close the open position (or the reverse order placement fails for some reason). I think the system should not allow cancelling the two open orders for this reason and we need a "close order" API to atomically/correctly do this.
-
HI @Madhusree You need to use parent order id to cancel the robo order.
eg:
{
"variety":"robo",
"orderid":"parent order id"
} -
@admin Could you please help me with this? To exit position brought via robo order
-
@admin I tested above use case
- Placing buy against sell or sell against buy is not exiting the open position (Brought by Robo).
- Tried to cancel the pending/open target & stoploss orders (Robo), Which returns the status SUCCESS but the orders are still open not cancelled.
-
HII @Madhusree Above mentioned scenarios need to be tested its a user specific query.