Skip to main content

real_yield

Function real_yield 

pub fn real_yield(
    bond: &InflationLinkedBond,
    convention: LinkerConvention,
    real_clean: f64,
    settlement: NaiveDate,
) -> Result<f64, LinkerQuoteError>
Expand description

The street real yield implied by a real clean quote — the inverse of real_price at the clean basis.

§Errors

LinkerQuoteError::WrongFamily for a market outside this family, and LinkerQuoteError::Solve when no yield reproduces the quote.