tmval.Bond.adj_principal¶
-
Bond.
adj_principal
(t: float, gr: Union[float, tmval.rate.Rate] = None, tprac: str = 'theoretical') → float[source]¶ Calculates the adjustment to principal in the accrued interest for a coupon.
- Parameters
t (float) – The valuation time.
gr (float, Rate) – The valuation rate, if different from the yield.
tprac (str) – Whether you want to use ‘theoretical’ or ‘practical’ values.
- Returns
The adjustment to principal in the accrued interest.
- Return type
float