pub struct LadderPoint {
pub move_rel: f64,
pub spot: f64,
pub mtm: f64,
pub pnl: f64,
pub position_mtm: Vec<f64>,
pub delta: Option<f64>,
pub gamma: Option<f64>,
}Expand description
One rung of the ladder.
Fields§
§move_rel: f64Relative spot move of this rung (e.g. -0.10 = spot down 10%).
spot: f64Absolute spot level at this rung, S0 * (1 + move_rel).
mtm: f64Book MtM under the bumped market (quantity-weighted).
pnl: f64mtm - base_mtm.
position_mtm: Vec<f64>Per-position MtM at this rung, in book order — the drill-down for “which trade drives the flip”.
delta: Option<f64>Ladder delta dV/dS at this rung from the neighbouring rungs
(central differences, uneven spacing supported); None at the
endpoints, which have only one neighbour.
gamma: Option<f64>Ladder gamma d²V/dS² at this rung; None at the endpoints.
Trait Implementations§
Source§impl Clone for LadderPoint
impl Clone for LadderPoint
Source§fn clone(&self) -> LadderPoint
fn clone(&self) -> LadderPoint
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 LadderPoint
impl RefUnwindSafe for LadderPoint
impl Send for LadderPoint
impl Sync for LadderPoint
impl Unpin for LadderPoint
impl UnsafeUnpin for LadderPoint
impl UnwindSafe for LadderPoint
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