I use Kite Connect (Python) to close my own F&O positions with LIMIT orders, NRML, on NFO. I have two short questions.
1. Quantity in modify_order on a partly filled order Example: I place a LIMIT BUY order for 1300 qty. 325 qty gets filled, so 975 is still pending. Now I call modify_order with quantity = 650. Does 650 mean: (a) the new TOTAL order quantity, so only 325 more stays pending (325 filled + 325 pending = 650), or (b) the new PENDING quantity, so 650 more stays pending (325 filled + 650 pending = 975)? Also: what happens if the new quantity is less than or equal to the filled quantity (e.g. quantity = 300 when 325 is filled)?
2. Limit on modifications Is there a maximum number of times one order can be modified (for NFO and BFO options)? If yes, what is the limit, and what error comes back when it is reached?