MCPcopy Create free account
hub / github.com/MarcusRainbow/QuantMath / new

Method new

src/instruments/bonds.rs:50–56  ·  view source on GitHub ↗

Creates a zero coupon bond. It must have an id that uniquely represents it. It is discounted according to the yield curve matching its credit_id: it can therefore represent a risky bond. It pays on its payment date, but a settlement rule must be supplied in case the user does not pass in a discount date to discount to. Normally, the settlement rule should be that of the instrument that span off th

(id: &str, credit_id: &str, currency: RcCurrency,
        ex_date: DateTime, payment_date: Date, settlement: RcDateRule)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected