Constant Maturity Bond Index. More...
#include <qle/indexes/bondindex.hpp>
Public Member Functions | |
ConstantMaturityBondIndex (const std::string &familyName, const Period &tenor, Natural settlementDays=0, Currency currency=Currency(), Calendar fixingCalendar=NullCalendar(), DayCounter dayCounter=SimpleDayCounter(), BusinessDayConvention convention=Following, bool endOfMonth=false, ext::shared_ptr< Bond > bond=nullptr, Compounding compounding=Compounded, Frequency frequency=Annual, Real accuracy=1.0e-8, Size maxEvaluations=100, Real guess=0.05, QuantLib::Bond::Price::Type priceType=QuantLib::Bond::Price::Clean) | |
InterestRateIndex interface | |
Date | maturityDate (const Date &valueDate) const override |
Fixing calculations | |
Rate | forecastFixing (const Date &fixingDate) const override |
Inspectors | |
BusinessDayConvention | convention_ |
bool | endOfMonth_ |
ext::shared_ptr< Bond > | bond_ |
Compounding | compounding_ |
Frequency | frequency_ |
Real | accuracy_ |
Size | maxEvaluations_ |
Real | guess_ |
Bond::Price::Type | priceType_ |
Date | bondStartDate_ |
std::string | securityId_ |
std::string | creditCurveId_ |
BusinessDayConvention | convention () const |
bool | endOfMonth () const |
const ext::shared_ptr< Bond > & | bond () const |
Constant Maturity Bond Index.
The purpose of this object is converting generic bond prices into yields and to use the yields as fixings in the context of floating rate coupons
Definition at line 199 of file bondindex.hpp.
ConstantMaturityBondIndex | ( | const std::string & | familyName, |
const Period & | tenor, | ||
Natural | settlementDays = 0 , |
||
Currency | currency = Currency() , |
||
Calendar | fixingCalendar = NullCalendar() , |
||
DayCounter | dayCounter = SimpleDayCounter() , |
||
BusinessDayConvention | convention = Following , |
||
bool | endOfMonth = false , |
||
ext::shared_ptr< Bond > | bond = nullptr , |
||
Compounding | compounding = Compounded , |
||
Frequency | frequency = Annual , |
||
Real | accuracy = 1.0e-8 , |
||
Size | maxEvaluations = 100 , |
||
Real | guess = 0.05 , |
||
QuantLib::Bond::Price::Type | priceType = QuantLib::Bond::Price::Clean |
||
) |
Definition at line 201 of file bondindex.hpp.
|
override |
Definition at line 207 of file bondindex.cpp.
|
override |
Definition at line 212 of file bondindex.cpp.
BusinessDayConvention convention | ( | ) | const |
Definition at line 245 of file bondindex.hpp.
bool endOfMonth | ( | ) | const |
Definition at line 246 of file bondindex.hpp.
const ext::shared_ptr< Bond > & bond | ( | ) | const |
|
private |
Definition at line 251 of file bondindex.hpp.
|
private |
Definition at line 252 of file bondindex.hpp.
|
private |
Definition at line 253 of file bondindex.hpp.
|
private |
Definition at line 254 of file bondindex.hpp.
|
private |
Definition at line 255 of file bondindex.hpp.
|
private |
Definition at line 256 of file bondindex.hpp.
|
private |
Definition at line 257 of file bondindex.hpp.
|
private |
Definition at line 258 of file bondindex.hpp.
|
private |
Definition at line 259 of file bondindex.hpp.
|
private |
Definition at line 260 of file bondindex.hpp.
|
private |
Definition at line 261 of file bondindex.hpp.
|
private |
Definition at line 262 of file bondindex.hpp.