Modify Order using API

I have sold 3 Lots of NIFTY 50 options at 25000 Total Quantity Makes to 25(3) = 75. and This order has been Executed. ORDER ID = 123456789 Example
Now I want to Modify Order to 2 Lots. which means I want to exit 1 Lot. Total Quantity that should be left will be 25(2)=50.

what will be the order ID of that 1 Lot which got Bought?
what will be the order ID of that 2 Lots which are already sold?? 123456789??

and how to Modify it to keep 2 Lots and buy 1 Lot.

image

Do I have to change Quantity Only ?. earlier 75 ā†’ now 50? like this?

You cannot modify after execution. You need to place new buy order for 1 lot. That will be your exit order.

1 Like