qis.get_excess_returns_nav¶
- qis.get_excess_returns_nav(prices, funding_rate, freq='B')[source]¶
Compute excess return NAV after funding costs.
The funding cost of the period
(t-1, t]on thefreqgrid is the annual rate known att-1times the ACT/365 fraction of the period, as incompute_excess_returns. The NAV is one on each column’s first price date, so the first period’s excess return is compounded, and the path is then rescaled so that its last level equals the last price.