Skip to content

Order status changed

SEND Server to Client on wss://api.valr.com/ws/account

Sent when an open order on the exchange has had a status change event. Includes the order ID, current status, remaining quantity, and other order details.

Authentication

This operation requires API key authentication (HMAC-SHA512 via query parameters or in-band AUTHENTICATE message).

Subscription

This event requires an explicit subscription. Send a SUBSCRIBE message after connecting:

json
{
    "type": "SUBSCRIBE",
    "subscriptions": [
        {
            "event": "ORDER_STATUS_UPDATE"
        }
    ]
}

Message

Event type: ORDER_STATUS_UPDATE

Payload Schema

PropertyTypeRequiredDescription
orderIdstringYes-
orderStatusTypestringYes-
currencyPairstringYes-
originalPricestringYes-
remainingQuantitystringYes-
originalQuantitystringYes-
orderSidestringYes-
orderTypestringYes-
failedReasonstringNo-
orderUpdatedAtstringYes-
orderCreatedAtstringYes-
customerOrderIdstringNo-

Example

json
"{\n    \"type\": \"ORDER_STATUS_UPDATE\",\n    \"data\": {\n        \"orderId\": \"f1e2d3c4-b5a6-7890-1234-567890abcdef\",\n        \"orderStatusType\": \"Filled\",\n        \"currencyPair\": \"BTCZAR\",\n        \"originalPrice\": \"950000\",\n        \"remainingQuantity\": \"0\",\n        \"originalQuantity\": \"0.01000000\",\n        \"orderSide\": \"BUY\",\n        \"orderType\": \"limit\",\n        \"failedReason\": null,\n        \"orderUpdatedAt\": \"2024-09-27T12:01:00.000Z\",\n        \"orderCreatedAt\": \"2024-09-27T12:00:00.000Z\",\n        \"customerOrderId\": \"my-order-1\"\n    }\n}"

Channel

Channel: account Address: wss://api.valr.com/ws/account