When I call the GET /orders endpoint, is the returned list guaranteed to be in strictly increasing order of timestamps?
I want to reliably determine the final status of an order by simply checking the last element in the list. Can I depend on the API always returning the events sorted chronologically, or do I need to analyse some other way ?
The Kite Connect API does not guarantee that the /orders endpoint will return orders in strictly increasing timestamp order. This endpoint provides only a real-time snapshot of all orders for the current day, and the sequence may vary based on exchange updates or internal processing flows. Please note that the order book on the exchange is transient and resets daily—hence, the /orders API returns all orders for the day across open, pending, and executed states. Please refer to the orders API documentation for more details.
`GET /orders/:order_id` Retrieve the history of a given order
I’m requesting details for a specific order using `/orders/{order_id}`, and the API returns a list of status updates for that order. What’s the correct way to determine the final or current status from this list? How am I supposed to identify the latest status? Please help.
I want the current status of the particular order instead of its historical updates. does this history of a particular order is guaranteed to be in increasing order ?
I’m requesting details for a specific order using `/orders/{order_id}`, and the API returns a list of status updates for that order. What’s the correct way to determine the final or current status from this list? How am I supposed to identify the latest status? Please help.
I want the current status of the particular order instead of its historical updates.
does this history of a particular order is guaranteed to be in increasing order ?
Thanks