Skip to main content
WSS
Subscribe to an account channel
type:object
Positions Snapshot
type:object

Sent once on subscribe. Contents use OpenAPI PositionsSnapshot: the same positions map as REST GET /positions (GetPositionsResponse) plus required isSnapshot: true, lastSequenceId, address, and accountIndex. The snapshot does NOT carry the REST-only total field. The required positions map is keyed by perp market id; each row carries sequenceNumber.

Spot collateral is not part of this channel — neither in this snapshot nor in the live stream. Subscribe to the dedicated spotPositions channel for the collateral snapshot and stream; the positions channel is perp-only.

Position Update
type:object

One position delta per frame (one PositionUpdate per streaming event). Contents carry isSnapshot: false and lastSequenceId. Each update has one row in positions. This channel is perp-only — spot collateral changes stream on the dedicated spotPositions channel (SpotPositionsUpdate), never here.

Each perp position row carries sequenceNumber (same counter as AccountUpdate). cumulativeFunding is absent; use the snapshot for funding horizons. On close, emitted in FLAT form with zeroed financials.