Appearance
Futures position closed
SEND Server to Client on wss://api.valr.com/ws/account
Sent when a futures position has been fully closed. If you manually close a position, you will receive both REDUCE_POSITION and POSITION_CLOSED. If a trade closes an existing position and flips it to the opposite side, you will first receive REDUCE_POSITION and POSITION_CLOSED for the original position, followed by OPEN_POSITION_UPDATE for the new position.
Authentication
This operation requires API key authentication (HMAC-SHA512 via query parameters or in-band AUTHENTICATE message).
Message
Event type: POSITION_CLOSED
Payload Schema
| Property | Type | Required | Description |
|---|---|---|---|
| pair | string | Yes | - |
| positionId | string | Yes | - |
Example
json
"{\n \"type\": \"POSITION_CLOSED\",\n \"data\": {\n \"pair\": \"BTCUSDTPERP\",\n \"positionId\": \"08dea401-ba23-ded0-28a9-03d6d59c32a4\"\n }\n}"Channel
Channel: account Address: wss://api.valr.com/ws/account