I see the below status in the docs of kiteConnect. Can you tell me the flow of order stages/status, so that I can understand each of them better. There was a problem on 12 Oct 2020 for one of my order. I placed an SLM and the stop loss got hit, but my position was not closed and the order was not executed. The share started falling down. I cancelled the order and it showed as cancelled in the orders page. And then i did place a new SLM order and then after sometime, position was green and i did end-up making profit when the new SLM was modified and sold at higher price. But after 1 hour, the old SLM order which was showing as (OPEN PENDING), executed and made me a loss of more than 13K. Before this old SLM order got executed, the position tab showed me as no orders are still running. All these false indications on positions and Orders tab caused me a lot of trouble. Hence, if i could understand the stages better in a sequence, I could then understand where the order is right now, at what stage i mean. Hence, in a sequence of order execution, please explain the order stages.
Status PUT ORDER REQUEST RECEIVED Order request has been received by the backend VALIDATION PENDING Order pending validation by the RMS (Risk Management System) OPEN PENDING Order is pending registration at the exchange MODIFY VALIDATION PENDING Order's modification values are pending validation by the RMS MODIFY PENDING Order's modification values are pending registration at the exchange TRIGGER PENDING Order's placed but the fill is pending based on a trigger price. CANCEL PENDING Order's cancellation request is pending registration at the exchange AMO REQ RECEIVED Same as PUT ORDER REQUEST RECEIVED, but for AMOs