Skip to main content

Module expiry_manager

Module expiry_manager 

Source
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ยง

ExpireInstrumentApplyResult ๐Ÿ”’
ExpiryManager
Manages instrument expiry schedules and settlement.
SettlementApplyInput ๐Ÿ”’
SettlementApplyIntent ๐Ÿ”’

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 ๐Ÿ”’