Expand description
Shared dependency bundle for the UnifiedEngine and its sub-managers.
EngineDeps groups all Arc-shared services that the engine’s sub-managers
need to borrow during order processing, margin checks, and expiry handling.
By bundling these into a dedicated struct the engine avoids passing 10+ parameters
to every delegated method call.
Structs§
- Deposit
Update Watermark - Engine
Ctx - All mutable + immutable shared state that managers need to access.
- Engine
Deps - Shared, immutable (from the manager’s perspective) dependencies.
- Engine
MmpState - Engine-internal MMP state for a single
(wallet, currency)pair. - Engine
Position - A single position in the engine’s internal state.
- MmpFill
Record - A single fill record tracked by MMP.
Enums§
Functions§
- apply_
fill_ to_ positions - Apply a fill to the engine position map, creating or removing entries as needed.
- apply_
option_ deposit_ to_ positions - Credit externally deposited option-token inventory into engine positions.
- apply_
option_ withdrawal_ to_ positions - Debit option-token inventory for an on-chain withdrawal.
- classify_
rejection_ reason - Classify a rejection reason string into a metric label.
- engine_
positions_ to_ portfolio_ balance - Convert engine positions to a
PortfolioBalancefor margin calculations.