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.Related
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.