Skip to content

Trading:Orders

Announces the current Orders for a Trading Account

Controller: Trading
Topic: Orders or Orders![ID]
Action: Sub
Permissions: Zenith/Trading
Server-side Unsubscribe: Yes

FormatDescriptionExample
OrdersReceive all data available on this login.Orders
Orders![ID]Receive data for a specific Trading AccountOrders!OM1234
NameDescription
IDThe Trading Account identifier to announce Order records for.

An ordered array of zero or more Order Change objects, to be applied in sequence.

NameTypeExpectDescription
OStringAlwaysThe operation being performed. One of:
A: Adding a new Order.
U: Updating an existing Order.
R: Removing an Order.
C: Clearing all Orders
AccountStringOptionalThe target Trading Account. Will be provided when clearing.
OrderObjectOptionalAn Order object. Will be omitted when clearing. Will always be provided in all other situations.
NameTypeExpectDescription
IDStringAlwaysThe unique order identifier assigned by the system.
AccountStringAlwaysThe Trading Account the Order is placed through.
ExternalIDStringOptionalThe external order identifier. User-quotable.
DepthOrderIDStringOptionalIf provided, should correspond to an Order ID available via a Depth subscription for the symbol the order is placed for.
StatusStringAlwaysThe status code of the Order. See the QueryOrderStatuses topic to retrieve the valid order statuses.
ExchangeStringOptionalThe Market this Order is currently on. Omitted if the Order has yet to be routed.
TradingMarketStringOptionalThe Trading Market this Order is currently on. Omited if the Order has yet to be routed.
CurrencyStringAlwaysThe Currency Code this Order’s values are quoted in.
EstimatedFeesObjectOptionalAn object where the key is a fee name, and the value the estimated fee this Order would incur. Omitted if no fees apply.
CurrentFeesObjectOptionalAn object where the key is a fee name, and the value the currently charged fee for this Order. Omitted if no fees have been charged.
EstimatedValueDecimalAlwaysThe estimated total value of this Order
CurrentValueDecimalAlwaysThe current executed value of this Order
CreatedDateDateTimeAlwaysThe date and time the Order was created.
UpdatedDateDateTimeAlwaysThe date and time the Order was last updated.
StyleStringAlwaysThe style of Order, which should correspond to the Class for the associated Symbol. One of the following values:
Market
ManagedFund
DetailsObjectAlwaysThe details of the Order. Corresponds to the Details object in the PlaceOrder action.
RouteObjectAlwaysThe routing rules used for this Order. Corresponds to the Route object in the PlaceOrder action.
ChildrenArrayOptionalAn array of child Order IDs.
ConditionObjectOptionalThe activation conditions for this Order, if any. Corresponds to the Condition object in the PlaceOrder action.

Extra fields depend on the Style of Order.

When Style is Market, the Order Details can have these additional fields:

NameTypeExpectDescription
ExecutedQuantityDecimalAlwaysThe number of shares that have been executed.
AveragePriceDecimalOptionalThe average price of the executed shares. Null if the order has yet to trade

Send:

{"Controller":"Trading","Topic":"Orders!OM12345","Action":"Sub","Confirm":true}

Receive:

{
"Controller":"Trading",
"Topic":"Orders!OM12345",
"Data":
[
{"O":"C"},
{
"O":"A",
"Order":
{
"ID":"00000000-0000-0000-CDEF-123456789ABC",
...
}
}
]
}
{"Controller":"Trading","Topic":"Orders!OM12345","Action":"Sub","Confirm":true}