pub struct PnlAttribution {
pub delta_pnl: f64,
pub gamma_pnl: f64,
pub vega_pnl: f64,
pub volga_pnl: f64,
pub vanna_pnl: f64,
pub theta_pnl: f64,
pub rho_pnl: f64,
pub explained: f64,
pub actual: f64,
pub unexplained: f64,
}Expand description
Risk-based PnL explain for one market move.
Fields§
§delta_pnl: f64§gamma_pnl: f64§vega_pnl: f64§volga_pnl: f64§vanna_pnl: f64§theta_pnl: f64§rho_pnl: f64§explained: f64Sum of the Taylor terms above.
actual: f64Full-reprice PnL of the book under the shifted market.
unexplained: f64actual - explained: third-order and unmodeled cross terms.
Trait Implementations§
Source§impl Clone for PnlAttribution
impl Clone for PnlAttribution
Source§fn clone(&self) -> PnlAttribution
fn clone(&self) -> PnlAttribution
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PnlAttribution
Auto Trait Implementations§
impl Freeze for PnlAttribution
impl RefUnwindSafe for PnlAttribution
impl Send for PnlAttribution
impl Sync for PnlAttribution
impl Unpin for PnlAttribution
impl UnsafeUnpin for PnlAttribution
impl UnwindSafe for PnlAttribution
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more