Expand description
Expiry and settlement management.
ExpiryManager owns the expiry schedules and implements the two-phase
settlement process: transition to pending โ settle when TWAP is available.
The canonical expired_instruments map lives in EngineCtx, and
reference_prices lives in EngineDeps to avoid duplication.
Structsยง
- Expire
Instrument ๐Apply Result - Expiry
Manager - Manages instrument expiry schedules and settlement.
- Settlement
Apply ๐Input - Settlement
Apply ๐Intent
Functionsยง
- apply_
engine_ ๐balance_ update - build_
settlement_ ๐apply_ intent - deterministic_
pm_ ๐settlement_ request_ id - digest_
pm_ ๐settlement_ inputs - effective_
pm_ ๐cash_ delta_ after_ precredit - expiry_
cash_ ๐delta_ for_ margin_ mode - initial_
pm_ ๐liquid_ with_ precredit - margin_
mode_ ๐for_ settlement - parse_
settlement_ ๐instrument_ or_ panic - simulated_
pm_ ๐liquid_ after_ settlement - simulated_
recoverable_ ๐after_ pm_ front - to_
settlement_ ๐option_ type - validate_
pm_ ๐settlement_ matches_ expiry - validate_
pm_ ๐settlement_ matches_ prepared