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

Function discount_with_borrow

src/data/forward.rs:167–172  ·  view source on GitHub ↗

Within a forward, all discounting and growth is done using exp(-rt + qt), i.e. using both the discount curve and the borrow curve. This is because the forward model is funded by repoing out the stock, which costs rate minus borrow. Any change to funding, such as payment of a dividend, must similarly be discounted with the same curves. The base_qt_minus_rt is zero unless the base dates of the rate

(rate: &RateCurve, borrow: &RateCurve,
    base_qt_minus_rt: f64, date: Date)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

newMethod · 0.85
newMethod · 0.85

Calls 1

log_discount_with_borrowFunction · 0.85

Tested by

no test coverage detected