"""Derivations over the event ledger: FIFO lots, realised P&L, and source matching."""