Skip to content

Trading:AuthoriseOrder

Requests to authorise an Order Request awaiting authorisation.

Successful completion of this action does not mean your Order Request has been authorised or rejected, only that the request has been acknowledged.

When authorising a placement an Order, a temporary Order ID will be allocated, and may change once it reaches the market.

Controller: Trading
Topic: AuthoriseOrder
Action: Publish
Permissions: Zenith/Authorise

NameTypeExpectDescription
AccountStringAlwaysThe Account that owns the Order request.
FlagsArrayOptionalAn array of string flags. See Appendix F: Order Flags for more information.
OrderIDStringAlwaysThe unique identifier of the Order to authorise.
RequestIDStringOptionalA string to uniquely (within this Account) identify this request. If omitted, a random 22-character alphanumeric string will be generated by the server.
AuthoriseBooleanAlwaysTrue to authorise the request, False to reject.
ReasonStringOptionalAn optional text reason to record against the authorisation or rejection.
NameTypeExpectDescription
ResultStringAlwaysThe result of the operation. One of the following values:
Success – Request successful.
Incomplete – Required fields are missing.
Invalid – The supplied fields are invalid.
Rejected – The order was rejected.
RequestIDStringAlwaysA string to uniquely (within this Account) identify this request.
OrderObjectOptionalIf the request was successful, supplies the Order state after this request was acknowledged
ErrorsArrayOptionalIf the request failed, supplies an array of string codes identifying the errors encountered. See Appendix E: Order Error Codes for more information
EstimatedBrokerageDecimalOptionalIf able to be calculated, provides the estimated brokerage this Order would incur
EstimatedTaxDecimalOptionalIf able to be calculated, provides the estimated tax this Order would incur
EstimatedValueDecimalOptionalIf able to be calculated, provides the estimated value of this Order, not including Brokerage or Tax (ie: Net Consideration)

Send:

{
"Controller":"Trading",
"Topic":"AuthoriseOrder",
"TransactionID":1,
"Data":
{
"Account":"1234[Demo]",
"OrderID":"00000000-0000-0000-CDEF-123456789ABC",
"Authorise":true,
"Reason":"OK"
}
}

Receive:

{
"Controller":"Trading",
"Topic":"AuthoriseOrder",
"TransactionID":1,
"Data":
{
"Result":"Success",
"Order":
{
"ID":"00000000-0000-0000-CDEF-123456789ABC",
...
},
"EstimatedBrokerage":10.00,
"EstimatedValue":1000.000
}
}