Struct BondOptionDiagnostics
pub struct BondOptionDiagnostics {
pub forward_dirty: f64,
pub forward_yield: f64,
pub forward_duration: f64,
pub yield_vol: f64,
pub price_vol: f64,
pub accrued_at_exercise: f64,
pub dirty_strike: f64,
pub expiry_years: f64,
}Expand description
The yield-vol engine’s intermediate quantities — what a trader reconciles against a vendor screen. Reapplying the closed-form Black/Bachelier formula to these reproduces the premium.
Fields§
§forward_dirty: f64Forward dirty price per 100 at exercise settlement.
forward_yield: f64Forward yield on the dirty forward (compounded at the coupon frequency).
forward_duration: f64Forward modified duration at the forward yield, in years.
yield_vol: f64The yield vol read at (expiry, forward_duration).
price_vol: f64The price vol after the duration conversion, in the units the pricing formula consumed: absolute per 100 under Normal, relative under Lognormal.
accrued_at_exercise: f64Accrued per 100 at exercise settlement.
dirty_strike: f64The dirty cash strike per 100.
expiry_years: f64Expiry in years, Act/365F from valuation.
Trait Implementations§
§impl Clone for BondOptionDiagnostics
impl Clone for BondOptionDiagnostics
§fn clone(&self) -> BondOptionDiagnostics
fn clone(&self) -> BondOptionDiagnostics
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 BondOptionDiagnostics
§impl Debug for BondOptionDiagnostics
impl Debug for BondOptionDiagnostics
§impl PartialEq for BondOptionDiagnostics
impl PartialEq for BondOptionDiagnostics
§fn eq(&self, other: &BondOptionDiagnostics) -> bool
fn eq(&self, other: &BondOptionDiagnostics) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BondOptionDiagnostics
Auto Trait Implementations§
impl Freeze for BondOptionDiagnostics
impl RefUnwindSafe for BondOptionDiagnostics
impl Send for BondOptionDiagnostics
impl Sync for BondOptionDiagnostics
impl Unpin for BondOptionDiagnostics
impl UnsafeUnpin for BondOptionDiagnostics
impl UnwindSafe for BondOptionDiagnostics
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