pub fn map_portfolio( positions: &[WsPortfolioPosition], now: Instant, ) -> Portfolio
Backward-compatible helper used by UD core tests.