Skip to main content
Use private ec.orders and ec.usertrades channels to track the order lifecycle and fills, and use ec.positions and ec.settlements to track account state.

Connection

Subscribe

Use a Broker API Key and the target user’s wallet address. See Broker WebSocket authentication:

Update Payloads

Order updates include identifiers, side, price, quantity, status, and timestamps. User trade updates include trade and order identifiers, role, fee rate, execution price, size, and confirmation status. Position updates include quantity, average price, settlement status, available quantity, locked quantity, and claimable amount. This documentation does not define mark-price fields.

State Recovery

WebSocket provides event updates and does not replace REST queries. After connecting or reconnecting:
  1. Subscribe to the required private channels.
  2. Query current orders, trades, positions, and account state through the corresponding REST endpoints.
  3. Apply subsequent WebSocket updates using identifiers and timestamps.
Do not expose internal user Headers or broker account identifiers in client requests.