quantlib.instruments.bonds.cpibond.CPIBond.bond_yield¶
- CPIBond.bond_yield(self, Price price, DayCounter dc, Compounding comp, Frequency freq, Date settlement_date=Date(), Real accuracy=1e-08, Size max_evaluations=100, Real guess=0.05)¶
Return the yield given a price and settlement date
The default bond settlement is used if no date is given.
This method is the original Bond.yield method in C++. Python does not allow us to use the yield statement as a method name.