Account Updates
Method: WebSocket
Description
Retrieve updates on accounts as they occur in real time.
Response Attributes
| Name | Type | Description |
|---|---|---|
| id | integer | The id associated with the Trading Account. |
| accountName | string | The name of the Trading Account. |
| nickname | string | The nickname of the Trading Account. |
| balance | decimal | The Trading Account's current balance. |
| unrealizedPnl | decimal | The Trading Account's unrealized p&l. |
| highestUnrealizedBalance | decimal | The Trading Account's highest unrealized balance. |
| highestRealizedBalance | decimal | The Trading Account's highest realized balance. |
| realizedDayPnl | decimal | The Trading Account's realized day p&l. |
| status | integer | The Trading Account's status. |
| lockoutExpiration | datetime | The date and time of lockout. |
| lockoutReason | string | The reason for the lockout. |
| dailyTradeLimit | integer | The number of trades allowed per account in a day. |
| weeklyTradeLimit | integer | The number of trades allowed per account in a week. |
| latestTradeDateTime | datetime | The date and time of latest trade. |
| ineligible | boolean | The Trading Account's ineligibility flag |
| maximumLossLimit | decimal | The maximum amount a Trading Account can lose. |
| dailyLossLimit | decimal | The amount a Trading Account can lose in a day. |
| updatedAt | datetime | The date and time of last update for the Trading Account. |
Example Usage
Example Response
- Account Created
- Account Updated
{
"data": {
"id": 202,
"accountName": "TEST_ACCOUNT",
"nickname": null,
"balance": 147186.78,
"unrealizedPnl": -840.00,
"highestUnrealizedBalance": 151014.10,
"highestRealizedBalance": 150371.90,
"realizedDayPnl": -2454.20,
"status": 0,
"lockoutExpiration": null,
"lockoutReason": null,
"dailyTradeLimit": null,
"weeklyTradeLimit": null,
"latestTradeDateTime": null,
"ineligible": false,
"maximumLossLimit": 145714.50,
"dailyLossLimit": 3000.00,
"updatedAt": "2025-02-25T14:41:35.2143684+00:00"
},
"action": 0 // 0 = create, 1 = update, 2 = delete/remove
}
{
"data": {
"id": 202,
"accountName": "TEST_ACCOUNT",
"nickname": null,
"balance": 147186.78,
"unrealizedPnl": -840.00,
"highestUnrealizedBalance": 151014.10,
"highestRealizedBalance": 150371.90,
"realizedDayPnl": -2454.20,
"status": 0,
"lockoutExpiration": null,
"lockoutReason": null,
"dailyTradeLimit": null,
"weeklyTradeLimit": null,
"latestTradeDateTime": null,
"ineligible": false,
"maximumLossLimit": 145714.50,
"dailyLossLimit": 3000.00,
"updatedAt": "2025-02-25T14:41:35.2143684+00:00"
},
"action": 1 // 0 = create, 1 = update, 2 = delete/remove
}