I am using the following code to get order status , but i got a message that my requests to send orders has exceeded more than 2000 orders , but i didnot send 2000 orders , is this problem because of the below code where in , i am polling kite.orders again and again to get order status.
if so , is there some code to get the number of requests for orders i have send till now for a particular account ?
what is the best way to poll order status ?
also , is there a way to know if i have hit the Zerodha RMS Limit of 3000 orders ?
We don't have any API to check the number of order requests a user has made in a day. If you are blocked then you have exceeded the limit. Orders that are rejected by our mini RMS won't show up in the orderbook. But it is still counted as 1.
Ofcourse you are polling in a loop non-stop. Have you tested in a single second how many times you are polling ? do a test printing with time
You can use postbacks or order updates on websocket API as an event to fetch orderbook and not poll.
We don't have any API to check the number of order requests a user has made in a day.
If you are blocked then you have exceeded the limit. Orders that are rejected by our mini RMS won't show up in the orderbook. But it is still counted as 1.