Skip to content

Trading:Audit

Announces the Order Audit records for a Trading Account. Order Audit is the history of transitions and states that all Orders and Order Requests have passed through.

Note: This subscription is currently not supported, and is documented for a future release. Please use QueryOrderAudit.

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

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

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

NameTypeExpectDescription
OStringAlwaysThe operation being performed. One of:
A: Adding a new Order Audit record.
U: Updating an existing Order Audit record.
R: Removing an Order Audit records.
C: Clearing all Order Audit records.
AccountStringOptionalThe target account. Will be provided when clearing.
AuditObjectOptionalThe audit record data. Will be omitted when clearing. Will always be provided in all other situations.

All records will contain one of Order, Request, or Transaction.

NameTypeExpectDescription
VersionStringAlwaysA version identifier for this record
OrderIDStringAlwaysThe unique identifier of the Order this record relates to
AccountStringAlwaysThe unique identifier of the Trading Account the Order belongs to
TypeStringAlwaysThe type of record. Will be one of:
Order: Represents a change to an Order
Request: Represents a change to an Order Request
Transaction: Represents a new Transaction
OrderObjectOptionalThe state of the Order. See the Orders topic for more information
RequestObjectOptionalThe state of the Order request. See the Requests topic for more information
TransactionObjectOptionalThe state of the Transaction. See the Transactions topic for more information

See Data Types for Time formatting.