Skip to content

New trade on your account

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

Sent when a trade occurs on your account via the order book. This is not sent for instant (simple buy/sell) orders. Includes trade price, quantity, currency pair, and side.

Authentication

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

Message

Event type: NEW_ACCOUNT_TRADE

Payload Schema

PropertyTypeRequiredDescription
pricestringYes-
quantitystringYes-
currencyPairstringYes-
tradedAtstringYes-
sidestringYes-

Example

json
"{\n    \"type\": \"NEW_ACCOUNT_TRADE\",\n    \"data\": {\n        \"price\": \"950000\",\n        \"quantity\": \"0.01000000\",\n        \"currencyPair\": \"BTCZAR\",\n        \"tradedAt\": \"2024-09-27T12:01:00.000Z\",\n        \"side\": \"BUY\"\n    }\n}"

Channel

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