Appearance
Open orders updated
SEND Server to Client on wss://api.valr.com/ws/account
Sent when your open orders change. Contains the full list of currently open orders on your account.
Authentication
This operation requires API key authentication (HMAC-SHA512 via query parameters or in-band AUTHENTICATE message).
Message
Event type: OPEN_ORDERS_UPDATE
Payload Schema
| Property | Type | Required | Description |
|---|---|---|---|
| accountId | string | Yes | - |
| orders | WsOpenOrderEntry[] | Yes | - |
orders (WsOpenOrderEntry)
| Property | Type | Required | Description |
|---|---|---|---|
| orderId | string | Yes | - |
| side | string | Yes | - |
| quantity | string | Yes | - |
| price | string | Yes | - |
| currencyPair | string | Yes | - |
| createdAt | string | Yes | - |
| originalQuantity | string | Yes | - |
| filledPercentage | string | Yes | - |
| customerOrderId | string | No | - |
| stopPrice | string | No | - |
| updatedAt | string | Yes | - |
| status | string | Yes | - |
| type | string | Yes | - |
| timeInForce | string | Yes | - |
Example
json
"{\n \"type\": \"OPEN_ORDERS_UPDATE\",\n \"data\": {\n \"accountId\": \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\n \"orders\": [\n {\n \"orderId\": \"f1e2d3c4-b5a6-7890-1234-567890abcdef\",\n \"side\": \"BUY\",\n \"quantity\": \"0.01000000\",\n \"price\": \"950000\",\n \"currencyPair\": \"BTCZAR\",\n \"createdAt\": \"2024-09-27T12:00:00.000Z\",\n \"originalQuantity\": \"0.01000000\",\n \"filledPercentage\": \"0.00\",\n \"customerOrderId\": \"my-order-1\",\n \"stopPrice\": null,\n \"updatedAt\": \"2024-09-27T12:00:00.000Z\",\n \"status\": \"Placed\",\n \"type\": \"limit\",\n \"timeInForce\": \"GTC\"\n }\n ]\n }\n}"Channel
Channel: account Address: wss://api.valr.com/ws/account