wss://api.hotstuff.trade/ws
Channel: positions
Example Request
Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
jsonrpc | string | Yes | JSON-RPC version | "2.0" |
id | string/number | Yes | Request identifier for tracking | "1" or 1 |
method | string | Yes | Action to perform | "subscribe" or "unsubscribe" |
channel | string | Yes | Channel name | "positions" |
user | string | Yes | User wallet address | "0xxxx" |
Supported Methods
subscribe- Subscribe to user position updatesunsubscribe- Unsubscribe from user position updates