Skip to main content

yield_moments

Function yield_moments 

pub fn yield_moments(
    bond: &FixedRateBond,
    y: f64,
    settlement: NaiveDate,
    basis: YieldBasis,
) -> YieldMoments
Expand description

The YieldMoments of bond at yield y: one Jet2 pricing pass.