Alternate for polling Kite.Orders API

subha
My code needs to place new orders when a stop loss is hit for which I need to keep polling the Kite.Orders API to know the status of the order. Is there any other way to get this information instead of polling every second?
  • sujith
    You can use postbacks or order updates via websocket as an event to fetch latest orderbook and check status and filled quantity field.
  • subha
    Thanks Sujith. Right now I am not using websocket programming. I am facing "ReactorNotRestartable" errors with websockets, so end up restarting kernel every time. Are we supposed to use web sockets?
  • sujith
    I would suggest using websockets API. You can refer to the FAQs to fix the reactor not restartable issue.
  • subha
    Thanks Sujith. Will look into it.
Sign In or Register to comment.