Skip to main content

real_price

Function real_price 

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

The real price at real_yield on the requested basis — one door for a caller holding a parsed PriceBasis rather than a branch over two signatures.

§Errors

As real_price at the dirty basis.