Fetching orders from postback/websocket

nicetochatting
i fetch orders in python using https by kite.orders(). However, sometimes it shows error that orders could not be fetched. in that case, i was thinking of using postback or websocket so that the order updates can reach me smoothly without having to place any exception handling to overcome this problem. Please tell me how to code that in python. anything that can help me in getting orders list without errors. every 10 seconds.
  • sujith
    You don't need to poll orderbook every 10 seconds. You can use order updates on Websockets API and use that as an event for fetching orderbook. You get order update for partial fill, status change, order execution.
  • sujith
    You may refer to the documentation here.
  • nicetochatting
    thanks sujith. i will look into it.
This discussion has been closed.