QuantLib: a free/open-source library for quantitative finance
Fully annotated sources - version 1.32
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
OvernightIborBasisSwapRateHelper Class Reference

Rate helper for bootstrapping over overnight-ibor basis swaps. More...

#include <ql/experimental/termstructures/basisswapratehelpers.hpp>

+ Inheritance diagram for OvernightIborBasisSwapRateHelper:
+ Collaboration diagram for OvernightIborBasisSwapRateHelper:

Public Member Functions

 OvernightIborBasisSwapRateHelper (const Handle< Quote > &basis, const Period &tenor, Natural settlementDays, Calendar calendar, BusinessDayConvention convention, bool endOfMonth, const ext::shared_ptr< OvernightIndex > &baseIndex, const ext::shared_ptr< IborIndex > &otherIndex, Handle< YieldTermStructure > discountHandle=Handle< YieldTermStructure >())
 
Real impliedQuote () const override
 
void accept (AcyclicVisitor &) override
 
- Public Member Functions inherited from RelativeDateBootstrapHelper< TS >
 RelativeDateBootstrapHelper (const Handle< Quote > &quote)
 
 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 &)
 
Observeroperator= (const Observer &)
 
virtual ~Observer ()
 
std::pair< iterator, boolregisterWith (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 &)
 
Observableoperator= (const Observable &)
 
 Observable (Observable &&)=delete
 
Observableoperator= (Observable &&)=delete
 
virtual ~Observable ()=default
 
void notifyObservers ()
 

Private Member Functions

void initializeDates () override
 
void setTermStructure (YieldTermStructure *) override
 

Private Attributes

Period tenor_
 
Natural settlementDays_
 
Calendar calendar_
 
BusinessDayConvention convention_
 
bool endOfMonth_
 
ext::shared_ptr< OvernightIndexbaseIndex_
 
ext::shared_ptr< IborIndexotherIndex_
 
Handle< YieldTermStructurediscountHandle_
 
ext::shared_ptr< Swapswap_
 
RelinkableHandle< YieldTermStructuretermStructureHandle_
 

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< Quotequote_
 
TS * termStructure_
 
Date earliestDate_
 
Date latestDate_
 
Date maturityDate_
 
Date latestRelevantDate_
 
Date pillarDate_
 

Detailed Description

Rate helper for bootstrapping over overnight-ibor basis swaps.

The swap is assumed to pay baseIndex + basis and receive otherIndex. This helper can be used to bootstrap the forecast curve for otherIndex; baseIndex will need an existing forecast curve. An exogenous discount curve can be passed; if not, the overnight-index curve will be used.

Definition at line 83 of file basisswapratehelpers.hpp.

Constructor & Destructor Documentation

◆ OvernightIborBasisSwapRateHelper()

OvernightIborBasisSwapRateHelper ( const Handle< Quote > &  basis,
const Period tenor,
Natural  settlementDays,
Calendar  calendar,
BusinessDayConvention  convention,
bool  endOfMonth,
const ext::shared_ptr< OvernightIndex > &  baseIndex,
const ext::shared_ptr< IborIndex > &  otherIndex,
Handle< YieldTermStructure discountHandle = Handle<YieldTermStructure>() 
)

Definition at line 121 of file basisswapratehelpers.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ impliedQuote()

Real impliedQuote ( ) const
overridevirtual

Implements BootstrapHelper< TS >.

Definition at line 185 of file basisswapratehelpers.cpp.

◆ accept()

void accept ( AcyclicVisitor v)
overridevirtual

Reimplemented from BootstrapHelper< TS >.

Definition at line 190 of file basisswapratehelpers.cpp.

+ Here is the call graph for this function:

◆ initializeDates()

void initializeDates ( )
overrideprivatevirtual

Implements RelativeDateBootstrapHelper< TS >.

Definition at line 148 of file basisswapratehelpers.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setTermStructure()

void setTermStructure ( YieldTermStructure t)
overrideprivate

Definition at line 174 of file basisswapratehelpers.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ tenor_

Period tenor_
private

Definition at line 101 of file basisswapratehelpers.hpp.

◆ settlementDays_

Natural settlementDays_
private

Definition at line 102 of file basisswapratehelpers.hpp.

◆ calendar_

Calendar calendar_
private

Definition at line 103 of file basisswapratehelpers.hpp.

◆ convention_

BusinessDayConvention convention_
private

Definition at line 104 of file basisswapratehelpers.hpp.

◆ endOfMonth_

bool endOfMonth_
private

Definition at line 105 of file basisswapratehelpers.hpp.

◆ baseIndex_

ext::shared_ptr<OvernightIndex> baseIndex_
private

Definition at line 106 of file basisswapratehelpers.hpp.

◆ otherIndex_

ext::shared_ptr<IborIndex> otherIndex_
private

Definition at line 107 of file basisswapratehelpers.hpp.

◆ discountHandle_

Handle<YieldTermStructure> discountHandle_
private

Definition at line 108 of file basisswapratehelpers.hpp.

◆ swap_

ext::shared_ptr<Swap> swap_
private

Definition at line 110 of file basisswapratehelpers.hpp.

◆ termStructureHandle_

RelinkableHandle<YieldTermStructure> termStructureHandle_
private

Definition at line 112 of file basisswapratehelpers.hpp.