Account Balances
Subscribe to changes in traders' account balances
Subscription Parameters
Cmd
Subscribe.txt
SessionId
Session ID from the authentication request
Keys
The ID of the trading account whose account balances you would like to retrieve
EntityType
AccountBalance
HttpClientType
WebSocket
Example: {"Cmd":"Subscribe.txt", "SessionId":"7e83072e-09e7-43ed-91d5-f2b747bf162e", "Keys":"140","EntityType":"AccountBalance","HttpClientType":"WebSocket"}
If you need to stream account balances for multiple trading accounts, simply send multiple subscription commands and AutoShares will start outputting individual messages for each trading account.
Unsubscription Parameters
Cmd
Unsubscribe.txt
SessionId
Session ID from the authentication request
Keys
The ID of the trading account whose account balances you would like to unsubscribe from
EntityType
AccountBalance
HttpClientType
WebSocket
Example: { "Cmd":"Unsubscribe.txt", "SessionId":"7e83072e-09e7-43ed-91d5-f2b747bf162e", "Keys":"140","EntityType":"Position","HttpClientType":"WebSocket"}
Message
In response to this request, you will receive all account-related information in the JSON format.
Example:
Last updated