# Receive real-time accounting and ledger updates **SUBSCRIBE /accounting** Real-time accounting updates including fills, cancellations, merges, and payouts. This stream provides atomic updates for both cash and position balances. 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 are identical to the /orders stream. ## Messages ### Accounting Update Frame Unified atomic update of cash and position balances for an account within one engine tick. #### Payload - **type** (string) - **seq** (integer(int64)) - **ts_ns** (integer(int64)) - **payload** (object) ### Accounting Payout Frame Final cash and position adjustment from market settlement or void #### 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)