Function spread_duration
pub fn spread_duration(
instrument: &AnyInstrument,
market: &MarketContext,
) -> Result<f64, BondReadingError>Expand description
A floating-rate note’s spread duration against market.
§Errors
BondReadingError::Product for an instrument that is not a
floating-rate note; otherwise as the note’s own reading.