To get latest status of multiple orders in one request

DaneshBansal
DaneshBansal edited April 26 in API clients
I want to get latest status of multiple orders in one request and on every tick. As of now, I have two options. First is to get order book and then filter status of the relevant order IDs, but to get the order status will take more time specifically considering that I want to get it in every tick. Second option is to get the order status one by one, this results in getting a message that there are "Too Many Requests". Kindly suggest a suitable methodology for managing this issue. Thanks
  • rakeshr
    I want to get latest status of multiple orders in one request and on every tick
    Didn't get you? Do you want to calculate the P&L of the open order with every tick?
    This thread explains P&L calculation in real time.
  • DaneshBansal
    Hi. Thanks for your response. No, i just was to know the status of the order like OPEN, COMPLETE etc
  • sujith
    You don't need to poll orderbook. You can listen to order updates on Websocket API and use that as an event to fetch orderbook and check the latest status of the order.
Sign In or Register to comment.