quantlib.interest_rate.
InterestRate¶
- class InterestRate(double rate, DayCounter dc, Compounding compounding, int frequency)¶
Bases:
objectThis class encapsulate the interest rate compounding algebra.
It manages day-counting conventions, compounding conventions, conversion between different conventions, discount/compound factor calculations, and implied/equivalent rate calculations.
- Attributes:
- compounding
- day_counter
frequencyReturns the frequency used for computation.
- rate
Methods
compound_factor(self, Time t)equivalent_rate(self, Compounding comp, ...)implied_rate(self, Real compound, ...)