Skip to content

Trading:Accounts

Announces the state of the Trading Accountsfor the authenticated user.

This is a legacy subscription. New development should be focused on the TradingAccounts subscription.

Controller: Trading
Topic: Accounts
Action: Sub
Permissions: None

Unordered Array of Account State objects

NameTypeExpectDescription
IDStringAlwaysThe unique identifier for the Account
FeedStringAlwaysOverall status of the data feed for this Account. One of:
Initialising: Feed is establishing, and will be online shortly.
Active: Feed is active and online.
Closed: Feed is active, but outside hours.
Inactive: Feed is offline, and outside hours. Data may be unavailable.
Impaired: Feed is unexpectedly offline, and data may be stale or unavailable
Expired: Feed is temporarily unavailable while a new state is prepared.
NameStringSometimesThe friendly name of this Account
ProviderStringSometimesThe underlying data provider
CurrencyStringSometimesThe default trading currency for this Account
AttributesObjectSometimesAn object where the keys and values represent attributes associated with this Account.
CategoriesArraySometimesAn array of string codes representing the categories the Account belongs to, if any.

Feed status changes can be sent as just ID and Feed. In all other cases, all fields will be sent.

Send:

{"Controller":"Trading","Topic":"Accounts","Action":"Sub","Confirm":true}

Receive:

{"Controller":"Trading","Topic":"Accounts","Data":[{"ID":"PT56789","Name":"Paritech Account 56789","Feed":"Active","Provider":"TotalView","Currency":"AUD","CategoryCodes":["Professional"],"Attributes":{"HIN":"56789"}}]}
{"Controller":"Trading","Topic":"Accounts","Action":"Sub","Confirm":true}

Feed Status Change:

{"Controller":"Trading","Topic":"Accounts","Data":[{"ID":"PT56789","Feed":"Impaired"}]}