Trading:Accounts

Announces the state of the Trading Accounts visible to this Client

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

Payload

Unordered Array of Account State objects

Account State object

Name Type Expect Description
ID String Always The unique identifier for the Account
Feed String Always Overall 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
Name String Sometimes The friendly name of this Account
Provider String Sometimes The underlying data provider
Currency String Sometimes The default trading currency for this Account

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

Example

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"}]}
{"Controller":"Trading","Topic":"Accounts","Action":"Sub","Confirm":true}

Feed Status Change:

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