CANCELLED SL order reports nonzero pending_quantity despite full cancellation

Shameer
I encountered inconsistent order quantities when cancelling an NSE equity MIS SL order through Kite Connect.

The order quantity was one share, with no fills.

The order history returned the following sequence:



The final order-history row and the order book both reported `CANCELLED` with `pending_quantity=1` and `cancelled_quantity=1`.

Both CANCELLED history rows had identical broker order and exchange update timestamps.

Order ID: 261202190472094
Date: 2 December 2026

Could you please clarify:

1. Is this expected Kite Connect API behaviour or a bug?
2. Can `pending_quantity` remain nonzero after an order has been fully cancelled?
3. Can we safely consider the executable remaining quantity to be zero when the status is CANCELLED and the filled and cancelled quantities account for the entire order quantity?
4. What is the recommended method for reliably verifying cancellation before submitting a position-closing MARKET order?

This verification is critical because the application must confirm that the protective stop-loss order can no longer execute before closing the position.
Sign In or Register to comment.