pub struct VolLadderPoint {
pub shift: f64,
pub mtm: f64,
pub pnl: f64,
pub position_mtm: Vec<f64>,
pub vega: Option<f64>,
pub volga: Option<f64>,
}Expand description
One rung of a vol_ladder.
Fields§
§shift: f64Absolute vol-point shift of this rung (e.g. -0.05 = every
implied vol down 5 points), applied as a parallel surface shift.
mtm: f64Book MtM under the shifted surface (quantity-weighted).
pnl: f64mtm - base_mtm.
position_mtm: Vec<f64>Per-position MtM at this rung, in book order.
vega: Option<f64>Ladder vega dV/dσ (per unit vol; divide by 100 for per-vol-point)
from the neighbouring rungs; None at the endpoints.
volga: Option<f64>Ladder volga d²V/dσ²; None at the endpoints.
Trait Implementations§
Source§impl Clone for VolLadderPoint
impl Clone for VolLadderPoint
Source§fn clone(&self) -> VolLadderPoint
fn clone(&self) -> VolLadderPoint
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 moreAuto Trait Implementations§
impl Freeze for VolLadderPoint
impl RefUnwindSafe for VolLadderPoint
impl Send for VolLadderPoint
impl Sync for VolLadderPoint
impl Unpin for VolLadderPoint
impl UnsafeUnpin for VolLadderPoint
impl UnwindSafe for VolLadderPoint
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