how many times can I poll the order status of a particular order in a second?the code worked well from local machine,but throwing an error of too many polls when running from cloud
You don't have to poll to know the latest order status. You can setup a postback or listen to order updates on Websocket API and use these as events to pull orderbook and see latest update. No need to poll orderbook every other second or every second.
@sujith the more lines in my code will inevitably cost me points in the long run, I felt it is better to poll every 1.5 lakh microseconds instead of listening updates from websocket as I am not crossing the request limit of 10 req a second
@97srinidhi No, it's better to use websocket. You will get an update whenever order status changes automatically. No need to check order status every second.
https://kite.trade/forum/discussion/2760/no-of-request-to-api
Thanks for the support
thanks for the support