Struct BondFutureOptionDiagnostics
pub struct BondFutureOptionDiagnostics {
pub futures_price: f64,
pub vol: f64,
pub convention: VolConvention,
pub time: f64,
pub discount: f64,
pub european: f64,
pub early_exercise: f64,
pub critical_price: Option<f64>,
}Expand description
The quantities a futures option is priced from, per 100 — what a trader
reconciles against an exchange or vendor screen. Recombining
european + early_exercise reproduces the per-100 model value.
Fields§
§futures_price: f64The quoted futures price.
vol: f64The vol read off the surface at the option’s expiry and strike.
convention: VolConventionWhether the vol is a Black or a Bachelier price vol.
time: f64The option’s life in the surface’s time measure, in years.
discount: f64The discount factor to expiry — 1 for a futures-style option.
european: f64The European value.
early_exercise: f64What early exercise adds — zero unless American with a paid premium.
critical_price: Option<f64>The Barone-Adesi–Whaley critical futures price, where it applies.
Trait Implementations§
§impl Clone for BondFutureOptionDiagnostics
impl Clone for BondFutureOptionDiagnostics
§fn clone(&self) -> BondFutureOptionDiagnostics
fn clone(&self) -> BondFutureOptionDiagnostics
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 BondFutureOptionDiagnostics
§impl Debug for BondFutureOptionDiagnostics
impl Debug for BondFutureOptionDiagnostics
§impl PartialEq for BondFutureOptionDiagnostics
impl PartialEq for BondFutureOptionDiagnostics
§fn eq(&self, other: &BondFutureOptionDiagnostics) -> bool
fn eq(&self, other: &BondFutureOptionDiagnostics) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BondFutureOptionDiagnostics
Auto Trait Implementations§
impl Freeze for BondFutureOptionDiagnostics
impl RefUnwindSafe for BondFutureOptionDiagnostics
impl Send for BondFutureOptionDiagnostics
impl Sync for BondFutureOptionDiagnostics
impl Unpin for BondFutureOptionDiagnostics
impl UnsafeUnpin for BondFutureOptionDiagnostics
impl UnwindSafe for BondFutureOptionDiagnostics
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