Order Updates
Method: WebSocket
Description
Retrieve updates on orders as they occur in real time.
Response Attributes
| Name | Type | Description |
|---|---|---|
| id | integer | The id associated with the Order |
| limitPrice | decimal | The limit price if the Order is a limit order. |
| stopPrice | decimal | The stop market price if the Order is a stop market order. |
| executedPrice | decimal | The executed price of the Order. |
| contractGroup | string | The contract group of the Order. |
| contract | string | The contract associated with the Order. |
| positionSize | integer | The contract size of the Order. A positive value is a long. A negative value is a short. |
| type | integer | The order type. |
| status | integer | The status of the order. |
| timestamp | datetime | The time and date that the order was executed. |
| createdAt | datetime | The time and date at which the order was created. |
| filledAt | datetime | The time and date at which the order was filled. |
| cancelledAt | datetime | The time and date at which the order was cancelled. |
| tradingAccountId | integer | The id of the Trading Account that placed the order. |
Example Usage
Example Response
- Order Created
- Order Updated
- Order Deleted
{
"data": {
"id": 19900,
"limitPrice": 21381.25,
"stopPrice": null,
"executedPrice": null,
"contractGroup": "/NQ",
"contract": "NQH5",
"positionSize": -1,
"type": 1,
"status": 6,
"timestamp": "2025-02-25T14:40:04.2256702+00:00",
"createdAt": "2025-02-25T14:40:04.1823356+00:00",
"filledAt": null,
"cancelledAt": null,
"tradingAccountId": 202
},
"action": 0 // 0 = create, 1 = update, 2 = delete/remove
}
{
"data": {
"id": 19900,
"limitPrice": 21381.25,
"stopPrice": null,
"executedPrice": null,
"contractGroup": "/NQ",
"contract": "NQH5",
"positionSize": -1,
"type": 1,
"status": 6,
"timestamp": "2025-02-25T14:40:04.2256702+00:00",
"createdAt": "2025-02-25T14:40:04.1823356+00:00",
"filledAt": null,
"cancelledAt": null,
"tradingAccountId": 202
},
"action": 1 // 0 = create, 1 = update, 2 = delete/remove
}
{
"data": {
"id": 19900,
"limitPrice": 21381.25,
"stopPrice": null,
"executedPrice": null,
"contractGroup": "/NQ",
"contract": "NQH5",
"positionSize": -1,
"type": 1,
"status": 6,
"timestamp": "2025-02-25T14:40:04.2256702+00:00",
"createdAt": "2025-02-25T14:40:04.1823356+00:00",
"filledAt": null,
"cancelledAt": null,
"tradingAccountId": 202
},
"action": 2 // 0 = create, 1 = update, 2 = delete/remove
}