Hi Team, I am checking the current status of the order I have placed. sometimes I need to modify the order. in that case. I have multiple Trigger pending states? can you assure that the response will always be sorted in the DateTime (order_timestamp or exchange_update_timestamp) column?
Order history is a list of statuses the order has gone through in our system. If you want the latest state then jump to the last item and check the status. Or you can pull orderbook and check the order status.
I would suggest don't look at the timestamp at all. Just jump to the last item and consider it as the latest status of the order. We can't assure you if there will be status change within a second or more than a second. It is arbitrary.
Or you can pull orderbook and check the order status.
2020-05-19 09:41:01 MODIFIED
2020-05-19 09:41:01 TRIGGER PENDING
"last item and check the status." --> Zerodha System will always sort?
will there be any case where we will get like this?
2020-05-19 09:41:01 TRIGGER PENDING
2020-05-19 09:41:01 MODIFIED
status changed in sec.. since we don't have the milli sec to sort.
We can't assure you if there will be status change within a second or more than a second. It is arbitrary.