I have a kite-ticker waiting on order updates. On cancel from the KiteConnect API and also from the Kite UI getting 2 messages in order update with Status 'CANCELLED' . Also in the Kite Order history also i can see 2 cancel messages . Is this expected ?
I have some code in order update and how can distinguish between these messages and drop one of the messages ?
Below are 2 messages got in kite ticker order update
Also below is the order history from Kite UI. Check the timestamp of Exch. time , Exch. update after cancel. It is showing order time only. Is this correct?
After placing Order order history
Time Status Exch. time Exch. update Qty. Filled qty. Avg. price Price 10:44:02 OPEN 10:44:02 10:44:02 1 0 0 350 10:44:02 OPEN PENDING — — 1 0 0 350 10:44:02 VALIDATION PENDING — — 1 0 0 350 10:44:02 PUT ORDER REQ RECEIVED — — 1 0 0 350
------------------------------------- After Cancel from Kite UI order history
Time Status Exch. time Exch. update Qty. Filled qty. Avg. price Price 10:45:33 CANCELLED 10:45:33 10:45:33 1 0 0 350 10:45:33 CANCELLED 10:45:33 10:45:33 1 0 0 350 10:45:33 CANCEL PENDING 10:44:02 10:44:02 1 0 0 350 10:44:02 OPEN 10:44:02 10:44:02 1 0 0 350 10:44:02 OPEN PENDING — — 1 0 0 350 10:44:02 VALIDATION PENDING — — 1 0 0 350 10:44:02 PUT ORDER REQ RECEIVED
These order updates originate from OMS, we just pass on whatever async messages sent by the OMS. It is a know limitation. You may refer to this thread.
It is a know limitation. You may refer to this thread.