Skip to main content

Module settlements

Module settlements 

Source
Expand description

Settlement persistence traits.

Settlement is the highest-risk persistence domain: every in-memory PnL mutation MUST have a corresponding DB write (CALL-500 post-mortem). The try_apply_settlement_sync method is idempotent and atomic.

Traitsยง

SettlementReader
Read-only settlement queries.
SettlementWriter
Settlement mutations. Atomic and idempotent.