Skip to content

Trading:MoveOrder

Requests to move an existing Order to another Trading Account.

Successful completion of this action does not mean your Order has been updated on the Market, only that the request has been acknowledged.

The Order state provided in this result is not synchronised with the Orders subscription, and can be older or newer than the most recent event.

Controller: Trading
Topic: MoveOrder`
Action: Publish
Permissions: Zenith/OrderPad

NameTypeExpectDescription
AccountStringAlwaysThe Trading Account that owns the Order
FlagsArrayOptionalAn array of string flags. See Appendix F: Order Flags for more information
OrderIDStringAlwaysThe unique identifier of the Order to move
RequestIDStringOptionalA string to uniquely (within this Account) identify this request. If omitted, a random 22-character alphanumeric string will be generated by the server.
DestinationstringAlwaysThe Trading Account to move the Order to
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
EstimatedFeesObjectOptionalAn object where the key is a fee name, and the value the estimated fee this Order would incur
EstimatedValueDecimalOptionalIf able to be calculated, provides the estimated value of this Order, not including Fees (ie: Net Consideration)

Send:

{"Controller":"Trading","Topic":"MoveOrder","TransactionID":1,"Data":{"Account":"1234[Demo]","OrderID":"00000000-0000-0000-CDEF-123456789ABC","Destination":"5678[Demo]"}}

Receive:

{
"Controller":"Trading",
"Topic":"MoveOrder",
"TransactionID":1,
"Data":
{
"Result":"Success",
"Order":
{
"ID":"00000000-0000-0000-CDEF-123456789ABC",
"Account":"5678[Demo]",
...
},
"EstimatedBrokerage":10.00,
"EstimatedValue":1000.000
}
}
{
"Controller":"Trading",
"Topic":"Orders!1234[Demo]",
"Data":
[
{
"O":"R",
"Order":
{
"ID":"00000000-0000-0000-CDEF-123456789ABC",
"Account":"1234[Demo]"
}
}
]
}
{
"Controller":"Trading",
"Topic":"Orders!5678[Demo]",
"Data":
[
{
"O":"A",
"Order":
{
"ID":"00000000-0000-0000-CDEF-123456789ABC",
"Account":"5678[Demo]",
...
}
}
]
}