polling order completion limit

97srinidhi
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
  • 97srinidhi
    97srinidhi edited March 2022
    error is thrown as too many requests
  • SRIJAN
    You can check out the existing rate limits here:
    https://kite.trade/forum/discussion/2760/no-of-request-to-api
  • 97srinidhi
    97srinidhi edited March 2022
    mistake from my end please close the thread,
    Thanks for the support
  • sujith
    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.
  • 97srinidhi
    @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
  • SRIJAN
    @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.
  • 97srinidhi
    will try to get the same done and compare between them
    thanks for the support
Sign In or Register to comment.