overnight coupon More...
#include <qle/cashflows/overnightindexedcoupon.hpp>
Inheritance diagram for OvernightIndexedCoupon:
Collaboration diagram for OvernightIndexedCoupon:Public Member Functions | |
| OvernightIndexedCoupon (const Date &paymentDate, Real nominal, const Date &startDate, const Date &endDate, const ext::shared_ptr< OvernightIndex > &overnightIndex, Real gearing=1.0, Spread spread=0.0, const Date &refPeriodStart=Date(), const Date &refPeriodEnd=Date(), const DayCounter &dayCounter=DayCounter(), bool telescopicValueDates=false, bool includeSpread=false, const Period &lookback=0 *Days, const Natural rateCutoff=0, const Natural fixingDays=Null< Size >(), const Date &rateComputationStartDate=Null< Date >(), const Date &rateComputationEndDate=Null< Date >()) | |
Inspectors | |
| const std::vector< Date > & | fixingDates () const |
| fixing dates for the rates to be compounded More... | |
| const std::vector< Time > & | dt () const |
| accrual (compounding) periods More... | |
| const std::vector< Rate > & | indexFixings () const |
| fixings to be compounded More... | |
| const std::vector< Date > & | valueDates () const |
| value dates for the rates to be compounded More... | |
| bool | includeSpread () const |
| include spread in compounding? More... | |
| Real | effectiveSpread () const |
| Real | effectiveIndexFixing () const |
| const Period & | lookback () const |
| lookback period More... | |
| Natural | rateCutoff () const |
| rate cutoff 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 | n_ |
| std::vector< Time > | dt_ |
| bool | includeSpread_ |
| Period | lookback_ |
| Natural | rateCutoff_ |
| Date | rateComputationStartDate_ |
| Date | rateComputationEndDate_ |
| void | accept (AcyclicVisitor &) override |
overnight coupon
Coupon paying the compounded interest due to daily overnight fixings.
if includeSpread = true, the spread is included in the daily compounding, otherwise it is added to the effective coupon rate after the compounding
Definition at line 72 of file overnightindexedcoupon.hpp.
| OvernightIndexedCoupon | ( | const Date & | paymentDate, |
| Real | nominal, | ||
| const Date & | startDate, | ||
| const Date & | endDate, | ||
| const ext::shared_ptr< OvernightIndex > & | overnightIndex, | ||
| Real | gearing = 1.0, |
||
| Spread | spread = 0.0, |
||
| const Date & | refPeriodStart = Date(), |
||
| const Date & | refPeriodEnd = Date(), |
||
| const DayCounter & | dayCounter = DayCounter(), |
||
| bool | telescopicValueDates = false, |
||
| bool | includeSpread = false, |
||
| const Period & | lookback = 0 * Days, |
||
| const Natural | rateCutoff = 0, |
||
| const Natural | fixingDays = Null<Size>(), |
||
| const Date & | rateComputationStartDate = Null<Date>(), |
||
| const Date & | rateComputationEndDate = Null<Date>() |
||
| ) |
Definition at line 54 of file overnightindexedcoupon.cpp.
Here is the call graph for this function:| const std::vector< Date > & fixingDates | ( | ) | const |
fixing dates for the rates to be compounded
Definition at line 84 of file overnightindexedcoupon.hpp.
Here is the caller graph for this function:| const std::vector< Time > & dt | ( | ) | const |
accrual (compounding) periods
Definition at line 86 of file overnightindexedcoupon.hpp.
Here is the caller graph for this function:| const vector< Rate > & indexFixings | ( | ) | const |
fixings to be compounded
Definition at line 149 of file overnightindexedcoupon.cpp.
| const std::vector< Date > & valueDates | ( | ) | const |
value dates for the rates to be compounded
Definition at line 90 of file overnightindexedcoupon.hpp.
Here is the caller graph for this function:| bool includeSpread | ( | ) | const |
| Real effectiveSpread | ( | ) | const |
effectiveSpread and effectiveIndexFixing are set such that coupon amount = notional * accrualPeriod * ( gearing * effectiveIndexFixing + effectiveSpread ) notice that
Definition at line 172 of file overnightindexedcoupon.cpp.
| Real effectiveIndexFixing | ( | ) | const |
Definition at line 181 of file overnightindexedcoupon.cpp.
| const Period & lookback | ( | ) | const |
lookback period
Definition at line 101 of file overnightindexedcoupon.hpp.
Here is the caller graph for this function:| Natural rateCutoff | ( | ) | const |
rate cutoff
Definition at line 103 of file overnightindexedcoupon.hpp.
Here is the caller graph for this function:| const Date & rateComputationStartDate | ( | ) | const |
| const Date & rateComputationEndDate | ( | ) | const |
| const ext::shared_ptr< OvernightIndex > & overnightIndex | ( | ) | const |
the underlying index
Definition at line 109 of file overnightindexedcoupon.hpp.
Here is the caller graph for this function:
|
override |
the date when the coupon is fully determined
Definition at line 114 of file overnightindexedcoupon.hpp.
|
override |
Definition at line 163 of file overnightindexedcoupon.cpp.
|
private |
Definition at line 121 of file overnightindexedcoupon.hpp.
|
private |
Definition at line 122 of file overnightindexedcoupon.hpp.
|
private |
Definition at line 122 of file overnightindexedcoupon.hpp.
|
mutableprivate |
Definition at line 123 of file overnightindexedcoupon.hpp.
|
private |
Definition at line 124 of file overnightindexedcoupon.hpp.
|
private |
Definition at line 125 of file overnightindexedcoupon.hpp.
|
private |
Definition at line 126 of file overnightindexedcoupon.hpp.
|
private |
Definition at line 127 of file overnightindexedcoupon.hpp.
|
private |
Definition at line 128 of file overnightindexedcoupon.hpp.
|
private |
Definition at line 129 of file overnightindexedcoupon.hpp.
|
private |
Definition at line 129 of file overnightindexedcoupon.hpp.