Skip to content

Trading:QueryOrders

Requests the current Orders for the given Account.

Controller: Trading
Topic: QueryOrders
Action: Publish
Permissions: Zenith/Trading

NameTypeExpectDescription
AccountStringAlwaysThe Account to request Orders for
OrderIDStringOptionalIf supplied, will return the requested Order

An unordered array of Order objects. See the Orders subscription for more information.

Send:

{"Controller":"Trading","Topic":"QueryOrders","TransactionID":1,"Data":{"Account":"1234[Demo]"}}

Receive:

{
"Controller":"Trading",
"Topic":"QueryOrders",
"TransactionID":1,
"Data":
[
{
"ID":"00000000-0000-0000-CDEF-123456789ABC",
...
}
[
}