WS Reference
Positions Stream
Open positions with mark price, margin, and PnL.
WSS
This stream is available on the Closed Positions Arrive as
When a position is closed, the delta reports it with
optionsPositions subscription. It provides your open option positions with mark price, margin, and PnL.
Snapshot vs. Delta
TheemitOptionsPositions request returns a snapshot via optionsPositions. Once subscribed, optionsPositionsDelta messages carry changed positions in the same shape. A delta has no clientRequestId — that is what distinguishes the live push from a snapshot response.
Closed Positions Arrive as flat
When a position is closed, the delta reports it with side flat and qty 0. This is the only message that tells you the position is gone.
flat only ever appears on a delta. The emitOptionsPositions snapshot returns open positions only, so a closed position is simply absent from it.
See Position Metrics for how value, notionalValue, unrealizedPnl, and breakEvenPrice are derived.