Skip to main content

reduce

Function reduce 

pub fn reduce(
    state: &mut PortfolioState,
    event: &EngineEvent,
) -> Result<(), ReduceError>
Expand description

Apply a single event to the portfolio state.

Returns Err for recoverable issues (unknown IDs, missing envelope fields). The caller decides whether to log-and-continue or abort.