Appearance
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
| Property | Type | Required | Description |
|---|---|---|---|
| price | string | Yes | - |
| quantity | string | Yes | - |
| currencyPair | string | Yes | - |
| tradedAt | string | Yes | - |
| side | string | Yes | - |
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