average overnight coupon More...
#include <qle/cashflows/averageonindexedcoupon.hpp>
Public Member Functions | |
AverageONIndexedCoupon (const Date &paymentDate, Real nominal, const Date &startDate, const Date &endDate, const QuantLib::ext::shared_ptr< OvernightIndex > &overnightIndex, Real gearing=1.0, Spread spread=0.0, Natural rateCutoff=0, const DayCounter &dayCounter=DayCounter(), const Period &lookback=0 *Days, const Size fixingDays=Null< Size >(), const Date &rateComputationStartDate=Null< Date >(), const Date &rateComputationEndDate=Null< Date >(), const bool telescopicValueDates=false) | |
Inspectors | |
const std::vector< Date > & | fixingDates () const |
fixing dates for the rates to be averaged More... | |
const std::vector< Time > & | dt () const |
accrual periods for the averaging More... | |
const std::vector< Rate > & | indexFixings () const |
fixings to be averaged More... | |
const std::vector< Date > & | valueDates () const |
value dates for the rates to be averaged More... | |
Natural | rateCutoff () const |
rate cutoff associated with the coupon More... | |
const Period & | lookback () const |
lookback period More... | |
const Date & | rateComputationStartDate () const |
rate computation start date More... | |
const Date & | rateComputationEndDate () const |
rate computation end date More... | |
const ext::shared_ptr< OvernightIndex > & | overnightIndex () const |
the underlying index More... | |
FloatingRateCoupon interface | |
Date | fixingDate () const override |
the date when the coupon is fully determined More... | |
Visitability | |
QuantLib::ext::shared_ptr< OvernightIndex > | overnightIndex_ |
std::vector< Date > | valueDates_ |
std::vector< Date > | fixingDates_ |
std::vector< Rate > | fixings_ |
Size | numPeriods_ |
std::vector< Time > | dt_ |
Natural | rateCutoff_ |
Period | lookback_ |
Date | rateComputationStartDate_ |
Date | rateComputationEndDate_ |
void | accept (AcyclicVisitor &) override |
average overnight coupon
Coupon paying the interest due to the weighted average of daily overnight fixings. The rateCutoff counts the number of fixing dates starting at the end date whose fixings are not taken into account, but rather replaced by the last known fixing before.
\ingroup cashflows
Definition at line 48 of file averageonindexedcoupon.hpp.
AverageONIndexedCoupon | ( | const Date & | paymentDate, |
Real | nominal, | ||
const Date & | startDate, | ||
const Date & | endDate, | ||
const QuantLib::ext::shared_ptr< OvernightIndex > & | overnightIndex, | ||
Real | gearing = 1.0 , |
||
Spread | spread = 0.0 , |
||
Natural | rateCutoff = 0 , |
||
const DayCounter & | dayCounter = DayCounter() , |
||
const Period & | lookback = 0 * Days , |
||
const Size | fixingDays = Null<Size>() , |
||
const Date & | rateComputationStartDate = Null<Date>() , |
||
const Date & | rateComputationEndDate = Null<Date>() , |
||
const bool | telescopicValueDates = false |
||
) |
Definition at line 35 of file averageonindexedcoupon.cpp.
const std::vector< Date > & fixingDates | ( | ) | const |
fixing dates for the rates to be averaged
Definition at line 59 of file averageonindexedcoupon.hpp.
const std::vector< Time > & dt | ( | ) | const |
accrual periods for the averaging
Definition at line 61 of file averageonindexedcoupon.hpp.
const std::vector< Rate > & indexFixings | ( | ) | const |
fixings to be averaged
Definition at line 117 of file averageonindexedcoupon.cpp.
const std::vector< Date > & valueDates | ( | ) | const |
value dates for the rates to be averaged
Definition at line 65 of file averageonindexedcoupon.hpp.
Natural rateCutoff | ( | ) | const |
rate cutoff associated with the coupon
Definition at line 67 of file averageonindexedcoupon.hpp.
const Period & lookback | ( | ) | const |
lookback period
Definition at line 69 of file averageonindexedcoupon.hpp.
const Date & rateComputationStartDate | ( | ) | const |
const Date & rateComputationEndDate | ( | ) | const |
const ext::shared_ptr< OvernightIndex > & overnightIndex | ( | ) | const |
the underlying index
Definition at line 75 of file averageonindexedcoupon.hpp.
|
override |
the date when the coupon is fully determined
Definition at line 135 of file averageonindexedcoupon.cpp.
|
override |
Definition at line 137 of file averageonindexedcoupon.cpp.
|
private |
Definition at line 87 of file averageonindexedcoupon.hpp.
|
private |
Definition at line 88 of file averageonindexedcoupon.hpp.
|
private |
Definition at line 88 of file averageonindexedcoupon.hpp.
|
mutableprivate |
Definition at line 89 of file averageonindexedcoupon.hpp.
|
private |
Definition at line 90 of file averageonindexedcoupon.hpp.
|
private |
Definition at line 91 of file averageonindexedcoupon.hpp.
|
private |
Definition at line 92 of file averageonindexedcoupon.hpp.
|
private |
Definition at line 93 of file averageonindexedcoupon.hpp.
|
private |
Definition at line 94 of file averageonindexedcoupon.hpp.
|
private |
Definition at line 94 of file averageonindexedcoupon.hpp.