Skip to content

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

PropertyTypeRequiredDescription
accountIdstringYes-
ordersWsOpenOrderEntry[]Yes-

orders (WsOpenOrderEntry)

PropertyTypeRequiredDescription
orderIdstringYes-
sidestringYes-
quantitystringYes-
pricestringYes-
currencyPairstringYes-
createdAtstringYes-
originalQuantitystringYes-
filledPercentagestringYes-
customerOrderIdstringNo-
stopPricestringNo-
updatedAtstringYes-
statusstringYes-
typestringYes-
timeInForcestringYes-

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