# Receive real-time payout/settlement updates (DEPRECATED) **SUBSCRIBE /payouts** Real-time settlement payouts stream with resume capability. NOTE: This stream is deprecated. Please migrate to /accounting. Query Parameters: - since=<uint64> Last applied seq for resume (optional; must be >0; absent or 0 → start from live tail) - market=<id> Repeatable; filter by market_id - account_id=<id> Repeatable; filter by account_id Resume Semantics: 1. Client connects with since=S (last applied seq) 2. Server replays frames with seq >= S in order 3. Sends backlog_end (last_seq = current max) 4. Continues live streaming If S > current max → immediate live (no backlog) If S too old (retention gap) → error frame (code=resume_too_old) then close (4009) Idempotency / Ordering: - seq strictly monotonic per broker (shared or separate sequence depending on implementation details, typically separate per stream type); no gaps - Client drops any frame with seq <= last_applied_seq - Expected next seq = last_applied_seq + 1 Heartbeats: - Sent when no payout within configured interval - Heartbeat does NOT advance seq - Heartbeat and backlog_end both repeat the last data seq Close Codes: Same as /orders ## Messages ### Payout Notification Frame Notification of a settlement payout #### Payload - **type** (string) - **seq** (integer(int64)) - **ts_ns** (integer(int64)) - **payload** (object) ### Heartbeat Frame Keep-alive heartbeat (does not advance seq) #### Payload - **type** (string) - **seq** (integer(int64)) Repeats last delivered data seq; heartbeat does not advance global seq - **ts_ns** (integer(int64)) - **payload** (object) ### Backlog End Marker Signals end of historical replay; live streaming begins #### Payload - **type** (string) - **seq** (integer(int64)) - **ts_ns** (integer(int64)) - **payload** (object) ### Error Frame Error notification before close #### Payload - **type** (string) - **seq** (integer(int64)) - **ts_ns** (integer(int64)) - **payload** (object) ## Bindings #### Operation WebSockets-specific information - **headers** (object) - **query** (object)