Skip to main content
Authenticate the socket to receive updates for the signed-in user. Message shapes are in WebSocket Protocol. No initial state is sent when the socket authenticates. Seed balances, positions, and orders from GET /execution/balances, GET /execution/positions, and GET /execution/orders, then apply socket updates. See Portfolio and Order lifecycle. A fill is the socket event order_event with event filled or partial_fill, and the webhook event trades.filled. See Webhooks.

Refresh-aware reconnect

If the socket closes and the access token may have expired, refresh it before reconnecting, then seed from REST again.

WebSocket Protocol

Authenticated user-event frames.

Order lifecycle

Statuses to poll when the socket was down.

Portfolio

Activity and the leaderboard.

Webhooks

trades.filled on your server.