What is the recommended approach for getting order status updates?

yoursvsr
Hi!

There are two options available (websockets and order history) for getting the order status updates, so what would be the recommended approach:

1) websocket only (won't always get the update)
2) polling the order history periodically (too many api calls in case order is waiting to get triggered), or
3) a combination of both.

What are you doing and recommend?
  • rakeshr
    3) a combination of both.
    This would be recommended depending on your use case. If you are looking for the status of Non-API orders placed as well. This thread explains all possible scenarios for order updates via WebSocket.
  • yoursvsr
    Thank you @rakeshr for the quick response. As a sub query, can I connect a websocket only for receiving order updates, ie without subscribing with any instruments for receiving ticks?
  • rakeshr
    can I connect a websocket only for receiving order updates, ie without subscribing with any instruments for receiving ticks?
    Yeah, just have callbacks for order update.
  • yoursvsr
    Thank you very much for your prompt responses. I'll keep that in mind.

    (This thread may be closed)
This discussion has been closed.