"""Core: PnL and holdings tracking."""