QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
Rate helper for bootstrapping over swap rates. More...
#include <ratehelpers.hpp>
Public Member Functions | |
SwapRateHelper (const Handle< Quote > &rate, const ext::shared_ptr< SwapIndex > &swapIndex, Handle< Quote > spread={}, const Period &fwdStart=0 *Days, Handle< YieldTermStructure > discountingCurve={}, Pillar::Choice pillar=Pillar::LastRelevantDate, Date customPillarDate=Date(), bool endOfMonth=false, const ext::optional< bool > &useIndexedCoupons=ext::nullopt) | |
SwapRateHelper (const Handle< Quote > &rate, const Period &tenor, Calendar calendar, Frequency fixedFrequency, BusinessDayConvention fixedConvention, DayCounter fixedDayCount, const ext::shared_ptr< IborIndex > &iborIndex, Handle< Quote > spread={}, const Period &fwdStart=0 *Days, Handle< YieldTermStructure > discountingCurve={}, Natural settlementDays=Null< Natural >(), Pillar::Choice pillar=Pillar::LastRelevantDate, Date customPillarDate=Date(), bool endOfMonth=false, const ext::optional< bool > &useIndexedCoupons=ext::nullopt) | |
SwapRateHelper (Rate rate, const ext::shared_ptr< SwapIndex > &swapIndex, Handle< Quote > spread={}, const Period &fwdStart=0 *Days, Handle< YieldTermStructure > discountingCurve={}, Pillar::Choice pillar=Pillar::LastRelevantDate, Date customPillarDate=Date(), bool endOfMonth=false, const ext::optional< bool > &useIndexedCoupons=ext::nullopt) | |
SwapRateHelper (Rate rate, const Period &tenor, Calendar calendar, Frequency fixedFrequency, BusinessDayConvention fixedConvention, DayCounter fixedDayCount, const ext::shared_ptr< IborIndex > &iborIndex, Handle< Quote > spread={}, const Period &fwdStart=0 *Days, Handle< YieldTermStructure > discountingCurve={}, Natural settlementDays=Null< Natural >(), Pillar::Choice pillar=Pillar::LastRelevantDate, Date customPillarDate=Date(), bool endOfMonth=false, const ext::optional< bool > &useIndexedCoupons=ext::nullopt) | |
RateHelper interface | |
Real | impliedQuote () const override |
void | setTermStructure (YieldTermStructure *) override |
SwapRateHelper inspectors | |
Spread | spread () const |
ext::shared_ptr< VanillaSwap > | swap () const |
const Period & | forwardStart () const |
Public Member Functions inherited from RelativeDateBootstrapHelper< TS > | |
RelativeDateBootstrapHelper (const Handle< Quote > "e) | |
RelativeDateBootstrapHelper (Real quote) | |
void | update () override |
Public Member Functions inherited from BootstrapHelper< TS > | |
BootstrapHelper (Handle< Quote > quote) | |
BootstrapHelper (Real quote) | |
~BootstrapHelper () override=default | |
const Handle< Quote > & | quote () const |
Real | quoteError () const |
virtual void | setTermStructure (TS *) |
sets the term structure to be used for pricing More... | |
virtual Date | earliestDate () const |
earliest relevant date More... | |
virtual Date | maturityDate () const |
instrument's maturity date More... | |
virtual Date | latestRelevantDate () const |
latest relevant date More... | |
virtual Date | pillarDate () const |
pillar date More... | |
virtual Date | latestDate () const |
latest date More... | |
Public Member Functions inherited from Observer | |
Observer ()=default | |
Observer (const Observer &) | |
Observer & | operator= (const Observer &) |
virtual | ~Observer () |
std::pair< iterator, bool > | registerWith (const ext::shared_ptr< Observable > &) |
void | registerWithObservables (const ext::shared_ptr< Observer > &) |
Size | unregisterWith (const ext::shared_ptr< Observable > &) |
void | unregisterWithAll () |
virtual void | update ()=0 |
virtual void | deepUpdate () |
Public Member Functions inherited from Observable | |
Observable () | |
Observable (const Observable &) | |
Observable & | operator= (const Observable &) |
Observable (Observable &&)=delete | |
Observable & | operator= (Observable &&)=delete |
virtual | ~Observable ()=default |
void | notifyObservers () |
Visitability | |
Natural | settlementDays_ |
Period | tenor_ |
Pillar::Choice | pillarChoice_ |
Calendar | calendar_ |
BusinessDayConvention | fixedConvention_ |
Frequency | fixedFrequency_ |
DayCounter | fixedDayCount_ |
ext::shared_ptr< IborIndex > | iborIndex_ |
ext::shared_ptr< VanillaSwap > | swap_ |
RelinkableHandle< YieldTermStructure > | termStructureHandle_ |
Handle< Quote > | spread_ |
bool | endOfMonth_ |
Period | fwdStart_ |
Handle< YieldTermStructure > | discountHandle_ |
RelinkableHandle< YieldTermStructure > | discountRelinkableHandle_ |
ext::optional< bool > | useIndexedCoupons_ |
void | accept (AcyclicVisitor &) override |
void | initializeDates () override |
Additional Inherited Members | |
Public Types inherited from Observer | |
typedef set_type::iterator | iterator |
Protected Member Functions inherited from RelativeDateBootstrapHelper< TS > | |
Protected Attributes inherited from RelativeDateBootstrapHelper< TS > | |
Date | evaluationDate_ |
Protected Attributes inherited from BootstrapHelper< TS > | |
Handle< Quote > | quote_ |
TS * | termStructure_ |
Date | earliestDate_ |
Date | latestDate_ |
Date | maturityDate_ |
Date | latestRelevantDate_ |
Date | pillarDate_ |
Rate helper for bootstrapping over swap rates.
Definition at line 258 of file ratehelpers.hpp.
SwapRateHelper | ( | const Handle< Quote > & | rate, |
const ext::shared_ptr< SwapIndex > & | swapIndex, | ||
Handle< Quote > | spread = {} , |
||
const Period & | fwdStart = 0 * Days , |
||
Handle< YieldTermStructure > | discountingCurve = {} , |
||
Pillar::Choice | pillar = Pillar::LastRelevantDate , |
||
Date | customPillarDate = Date() , |
||
bool | endOfMonth = false , |
||
const ext::optional< bool > & | useIndexedCoupons = ext::nullopt |
||
) |
Definition at line 523 of file ratehelpers.cpp.
SwapRateHelper | ( | const Handle< Quote > & | rate, |
const Period & | tenor, | ||
Calendar | calendar, | ||
Frequency | fixedFrequency, | ||
BusinessDayConvention | fixedConvention, | ||
DayCounter | fixedDayCount, | ||
const ext::shared_ptr< IborIndex > & | iborIndex, | ||
Handle< Quote > | spread = {} , |
||
const Period & | fwdStart = 0 * Days , |
||
Handle< YieldTermStructure > | discountingCurve = {} , |
||
Natural | settlementDays = Null<Natural>() , |
||
Pillar::Choice | pillar = Pillar::LastRelevantDate , |
||
Date | customPillarDate = Date() , |
||
bool | endOfMonth = false , |
||
const ext::optional< bool > & | useIndexedCoupons = ext::nullopt |
||
) |
SwapRateHelper | ( | Rate | rate, |
const ext::shared_ptr< SwapIndex > & | swapIndex, | ||
Handle< Quote > | spread = {} , |
||
const Period & | fwdStart = 0 * Days , |
||
Handle< YieldTermStructure > | discountingCurve = {} , |
||
Pillar::Choice | pillar = Pillar::LastRelevantDate , |
||
Date | customPillarDate = Date() , |
||
bool | endOfMonth = false , |
||
const ext::optional< bool > & | useIndexedCoupons = ext::nullopt |
||
) |
Definition at line 575 of file ratehelpers.cpp.
SwapRateHelper | ( | Rate | rate, |
const Period & | tenor, | ||
Calendar | calendar, | ||
Frequency | fixedFrequency, | ||
BusinessDayConvention | fixedConvention, | ||
DayCounter | fixedDayCount, | ||
const ext::shared_ptr< IborIndex > & | iborIndex, | ||
Handle< Quote > | spread = {} , |
||
const Period & | fwdStart = 0 * Days , |
||
Handle< YieldTermStructure > | discountingCurve = {} , |
||
Natural | settlementDays = Null<Natural>() , |
||
Pillar::Choice | pillar = Pillar::LastRelevantDate , |
||
Date | customPillarDate = Date() , |
||
bool | endOfMonth = false , |
||
const ext::optional< bool > & | useIndexedCoupons = ext::nullopt |
||
) |
Definition at line 587 of file ratehelpers.cpp.
|
overridevirtual |
Implements BootstrapHelper< TS >.
Definition at line 676 of file ratehelpers.cpp.
|
override |
Spread spread | ( | ) | const |
ext::shared_ptr< VanillaSwap > swap | ( | ) | const |
Definition at line 486 of file ratehelpers.hpp.
const Period & forwardStart | ( | ) | const |
Definition at line 490 of file ratehelpers.hpp.
|
overridevirtual |
Reimplemented from BootstrapHelper< TS >.
Definition at line 690 of file ratehelpers.cpp.
|
overrideprotectedvirtual |
Implements RelativeDateBootstrapHelper< TS >.
Definition at line 606 of file ratehelpers.cpp.
|
protected |
Definition at line 334 of file ratehelpers.hpp.
|
protected |
Definition at line 335 of file ratehelpers.hpp.
|
protected |
Definition at line 336 of file ratehelpers.hpp.
|
protected |
Definition at line 337 of file ratehelpers.hpp.
|
protected |
Definition at line 338 of file ratehelpers.hpp.
|
protected |
Definition at line 339 of file ratehelpers.hpp.
|
protected |
Definition at line 340 of file ratehelpers.hpp.
|
protected |
Definition at line 341 of file ratehelpers.hpp.
|
protected |
Definition at line 342 of file ratehelpers.hpp.
|
protected |
Definition at line 343 of file ratehelpers.hpp.
Definition at line 344 of file ratehelpers.hpp.
|
protected |
Definition at line 345 of file ratehelpers.hpp.
|
protected |
Definition at line 346 of file ratehelpers.hpp.
|
protected |
Definition at line 347 of file ratehelpers.hpp.
|
protected |
Definition at line 348 of file ratehelpers.hpp.
|
protected |
Definition at line 349 of file ratehelpers.hpp.