Stream order updates

Receive live order, trade and portfolio updates for the accounts an adviser manages, without polling.

Flow

Orders by adviser updates flow

What you need

RequirementDetail
Scopeoms-streams-api
APIOMS streaming
Base URL (test)https://test-oms-streams-api.openmarkets.com.au/
ProtocolSignalR with MessagePack

Steps

  1. Build the connection. Point a SignalR client at /streams on the OMS streaming host with an access token provider. See OMS streaming.
  2. Register handlers first. Attach handlers for OrdersUpdated and TradesUpdated before starting the connection.
  3. Start the connection, then invoke SubscribeToOrderUpdates and SubscribeToTradeUpdates.
  4. Resubscribe on reconnect. Subscriptions do not survive a dropped connection, so resubscribe in the Reconnected handler.
  5. Filter by adviser. Updates arrive for your business. Use advisorCode on the incoming payloads to route updates to the right adviser in your application.

You receive orders created during the current trading day and associated with your business ID. For historical orders, use the REST endpoints on the Order Management API.

Starting an order updates flow with the AllOrdersForToday filter before 4AM returns invalid order values. Start the flow after 7AM. See Known issues.

OMS streamingConnection, authentication, reconnect behaviour, channels and payload schemas.