Skip to main content

pnl_err

Function pnl_err 

pub(crate) fn pnl_err(e: PnlError) -> PyErr
Expand description

A P&L failure: two markets of different shape, or differing by more than an attribution can move, are the caller’s ValueError; a pricing, risk or curve failure inside the attribution keeps its own class.