Skip to main content

deposit_rung

Function deposit_rung 

pub fn deposit_rung(
    code: &str,
    template: &AnyTemplate,
    valuation: NaiveDate,
    tenor: Period,
    rate: f64,
    notional: f64,
) -> Result<Rung, RungBuildError>
Expand description

The par rung of a money-market deposit on a deposit template value: lent on valuation, maturing tenor on under the template’s calendar and convention, on the template’s day count, quoted at rate. Noded at the maturity, which is where a deposit pays, and labelled by its tenor.

§Errors

RungBuildError::NotFamily for a template of another family.