Skip to content

Market:Depth

Announces the current orders in the market depth for a Security.

This subscription is only available for symbols that offer DepthFull in their SubscriptionData.

Controller: Market
Topic: Depth![Code].[Market]
Action: Sub
Permissions: Zenith/Market
Server-side Unsubscribe: Yes

FormatDescriptionExample
Depth![Code].[Market]Receive depth orders relating to a symbol.Depth!BHP.ASX
NameDescription
MarketThe code for the listing Market of the desired symbol. Can be a Mixed Market code.
CodeThe code of the desired symbol.

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

Orders are not provided in any particular sort order. Clients will need to apply appropriate sorting.

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.
OrderObjectOptionalA Depth Order object. Will be omitted when clearing. Will always be provided in all other situations.
NameTypeExpectDescription
IDStringAlwaysThe order identifier, unique for the subscribed Security.
SideStringOptionalThe side of the market the Order is on. Will be provided for additions only. One of:
Bid: Bid/buy order.
Ask: Ask/sell order.
PriceDecimalOptionalThe price of the Order. Provided for additions or updates if the price has been amended.
PositionIntegerOptionalThe position of the Order within the price point. The position is not an index, and may not be sequential. Orders should be sorted within each price point in ascending order based on this field. Provided for additions or updates if the position has changed.
BrokerStringOptionalA code identifying the broker who placed this Order. Will be provided for additions only. Will only be supplied if the identified client has the appropriate rights to view it.
CrossRefStringOptionalA code referencing this Order. Will be provided for additions only. Will only be supplied if the identified client has the appropriate rights to view it.
QuantityDecimalOptionalThe total number of shares placed against this Order. May be provided for Additions or Updates. May be null, signifying an undisclosed Order.
HasUndisclosedBooleanOptionalWhether there is an additional undisclosed amount. May be provided for Additions or Updates. Will only be supplied if the Order has a Quantity that is non-null, signifying an iceberg-style Order.
MarketStringOptionalThe original Market that holds this Order, when using Mixed Markets.
AttributesArrayOptionalAn array of Market-Specific attributes that apply to this Order.
websocket.send(JSON.stringify(
{
Controller:"Market",
Topic:"Depth!BHP.ASX",
Action:"Sub",
Confirm:true
});

Sample Response:

{
"Controller":"Market",
"Topic":"Depth!BHP.ASX",
"Data":
[
{
"O":"A",
"Order":
{
"ID":"DEADBEEF-CAFE-F00D-C0DE-123412341234",
"Side":"B",
"Price":42.05,
"Position":1024,
"Quantity":null
}
},
{
"O":"U",
"Order":
{
"ID":"FACEB00C-8BAD-F00D-C0DE-123412341234",
"Quantity":5000
}
}
]
}