Exit Hook Manager
Pipeline-owned lifecycle for one-shot DSL exit hooks.
All lookups are indexed by strategy, order id, broker ticket, or strategy/symbol. Strategies without active hooks return after one strategy-map lookup.
Functions
Execute hook actions prepared by a deferred onFill call for this stamped event.
Drop an unfilled parent entry that expired or was cancelled.
Consume an accounted fill. strategyAfterQuantity is the post-fill net strategy quantity, reducedExposure says accounting observed a reduction/flip, and netRealizedPnl is the exact amount already booked by the pipeline. Set deferDispatch when order-lifecycle handlers must finish before child submission.
Drop a binding whose entry was rejected before any position could open.
Register a risk-approved request before it reaches the broker.
Correlate an approved explicit close with the hook-bearing entry it targets.