subscribe_positions, and the positions payload that subscription delivers.
Subscribing to position updates
Subscribe to real-time position changes by emittingsubscribe_positions. This requires an HMAC-signed handshake. See Authentication.
subscribe_positions accepts the same payload as subscribe_market_prices:
Position updates are pushed automatically when your balances change (e.g. after a trade is mined). You do not need to poll.
Event payload
positions
Position updates have different shapes depending on market type.
AMM markets:
Related
- WebSocket overview: connection details, handshake authentication, and the full event reference