Skip to content

Trading:Requests

Announces the pending Order Requests for a Trading Account.

Once a request has been finished for any reason (successful completion, rejection, etc) it will be removed from this subscription.

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

FormatDescriptionExample
RequestsReceive all data available on this login.Requests
Requests![ID]Receive data for a specific Trading Account.Requests!OM1234
NameDescription
IDThe Trading Account identifier to announce Requests for.

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

NameTypeExpectDescription
OStringAlwaysThe operation being performed. One of:
A: Adding a new Order Request.
U: Updating an existing Order Request.
R: Removing an Order Request.
C: Clearing all Order Requests.
AccountStringOptionalThe target account. Will be provided when clearing.
RequestObjectOptionalThe Order Request object. Will be omitted when clearing. Will always be provided in all other situations.
NameTypeExpectDescription
IDStringAlwaysThe unique order request identifier assigned by the system.
AccountStringAlwaysThe account the Order Request was placed against.
OrderIDStringAlwaysThe unique identifier of the Order.
TypeStringAlwaysThe type of Order Request. One of:
Place: Order being placed.
Amend: Order being amended.
Cancel: Order being cancelled.
CreatedDateDateTimeAlwaysThe date and time the Order Request was created.
UpdatedDateDateTimeAlwaysThe date and time the Order Request was last updated.
StatusStringAlwaysThe status of the Order Request. One of:
Pending: Request is being processed.
PendingAuthorisation: Request is awaiting authorisation.
Rejected: Request has been rejected.
Authorised: Request has been authorised and is awaiting processing.
Complete: Request has been successfully completed.
DetailsObjectAlwaysThe details of the Order. On an amend, this will be the details if the amendment is successful. Corresponds to the Order Details object in the PlaceOrder query
RouteObjectAlwaysThe routing rules used for the Order. Corresponds to the Route object in the PlaceOrder query.
ConditionObjectOptionalThe activation conditions for this Order, if any. Corresponds to the Condition object in the PlaceOrder query.

Send:

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

Receive:

{
"Controller":"Trading",
"Topic":"Requests!OM12345",
"Data":
[
{"O":"C","Account":"OM12345[Demo]"},
{
"O":"A",
"Request":
{
"ID":"2ec7c4b6-cb73-f3c9-056a-f028850a3d25",
"Account":"OM12345[Demo]",
"OrderID":"00000000-0000-0000-002a-5a1789e70071",
"Type":"Place",
"CreatedDate":"2017-11-22T14:13:55+11:00",
"UpdatedDate":"2017-11-22T14:13:55+11:00",
"Status":"PendingAuthorisation",
"Details":
{
"Style":"Equity",
"Side":"Ask",
"Exchange":"ASX[Demo]",
"Code":"BHP",
"BrokerageSchedule":"OMR",
"Type":"Limit",
"LimitPrice":27.850,
"Quantity":75,
"Validity":"UntilCancel"
},
"Route":
{
"Algorithm":"Market",
"Market":"ASX:TM[Demo]"
}
}
}
]
}
{"Controller":"Trading","Topic":"Requests!OM12345","Action":"Sub","Confirm":true}