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.

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.

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.