equity coupon More...
#include <qle/cashflows/equitymargincoupon.hpp>
Public Member Functions | |
EquityMarginCoupon (const Date &paymentDate, Real nominal, Rate rate, Real marginFactor, const Date &startDate, const Date &endDate, Natural fixingDays, const QuantLib::ext::shared_ptr< QuantExt::EquityIndex2 > &equityCurve, const DayCounter &dayCounter, bool isTotalReturn=false, Real dividendFactor=1.0, bool notionalReset=false, Real initialPrice=Null< Real >(), Real quantity=Null< Real >(), const Date &fixingStartDate=Date(), const Date &fixingEndDate=Date(), const Date &refPeriodStart=Date(), const Date &refPeriodEnd=Date(), const Date &exCouponDate=Date(), Real multiplier=Null< Real >(), const QuantLib::ext::shared_ptr< FxIndex > &fxIndex=nullptr, const bool initialPriceIsInTargetCcy=false) | |
Coupon interface | |
DayCounter | dayCounter () const override |
Real | accruedAmount (const Date &) const override |
Real | amount () const override |
Rate | rate () const override |
Real | nominal () const override |
Inspectors | |
const QuantLib::ext::shared_ptr< QuantExt::EquityIndex2 > & | equityCurve () const |
equity reference rate curve More... | |
const QuantLib::ext::shared_ptr< FxIndex > & | fxIndex () const |
fx index curve More... | |
bool | isTotalReturn () const |
total return or price return? More... | |
Real | dividendFactor () const |
are dividends scaled (e.g. to account for tax) More... | |
Date | fixingStartDate () const |
The date at which the starting equity price is fixed. More... | |
Date | fixingEndDate () const |
The date at which performance is measured. More... | |
std::vector< Date > | fixingDates () const |
return both fixing dates More... | |
Real | initialPrice () const |
initial price More... | |
bool | initialPriceIsInTargetCcy () const |
initial price is in target ccy (if applicable, i.e. if fxIndex != null, otherwise ignored) More... | |
Real | quantity () const |
Number of equity shares held. More... | |
Real | fxRate () const |
FX conversion rate (or 1.0 if not applicable) More... | |
Date | fixingDate () const |
This function is called for other coupon types. More... | |
Real | marginFactor () const |
InterestRate | fixedRate () const |
Real | multiplier () const |
Observer interface | |
void | update () override |
Visitability | |
QuantLib::ext::shared_ptr< EquityMarginCouponPricer > | pricer_ |
Natural | fixingDays_ |
QuantLib::ext::shared_ptr< QuantExt::EquityIndex2 > | equityCurve_ |
DayCounter | dayCounter_ |
bool | isTotalReturn_ |
Real | dividendFactor_ |
bool | notionalReset_ |
Real | initialPrice_ |
bool | initialPriceIsInTargetCcy_ |
Real | quantity_ |
Date | fixingStartDate_ |
Date | fixingEndDate_ |
Natural | paymentLag_ |
QuantLib::ext::shared_ptr< FxIndex > | fxIndex_ |
Real | marginFactor_ |
InterestRate | fixedRate_ |
Real | multiplier_ |
virtual void | accept (AcyclicVisitor &) override |
void | setPricer (const QuantLib::ext::shared_ptr< EquityMarginCouponPricer > &) |
QuantLib::ext::shared_ptr< EquityMarginCouponPricer > | pricer () const |
equity coupon
Definition at line 48 of file equitymargincoupon.hpp.
EquityMarginCoupon | ( | const Date & | paymentDate, |
Real | nominal, | ||
Rate | rate, | ||
Real | marginFactor, | ||
const Date & | startDate, | ||
const Date & | endDate, | ||
Natural | fixingDays, | ||
const QuantLib::ext::shared_ptr< QuantExt::EquityIndex2 > & | equityCurve, | ||
const DayCounter & | dayCounter, | ||
bool | isTotalReturn = false , |
||
Real | dividendFactor = 1.0 , |
||
bool | notionalReset = false , |
||
Real | initialPrice = Null<Real>() , |
||
Real | quantity = Null<Real>() , |
||
const Date & | fixingStartDate = Date() , |
||
const Date & | fixingEndDate = Date() , |
||
const Date & | refPeriodStart = Date() , |
||
const Date & | refPeriodEnd = Date() , |
||
const Date & | exCouponDate = Date() , |
||
Real | multiplier = Null<Real>() , |
||
const QuantLib::ext::shared_ptr< FxIndex > & | fxIndex = nullptr , |
||
const bool | initialPriceIsInTargetCcy = false |
||
) |
Definition at line 28 of file equitymargincoupon.cpp.
|
override |
|
override |
Definition at line 96 of file equitymargincoupon.cpp.
|
override |
|
override |
Definition at line 120 of file equitymargincoupon.cpp.
|
override |
Definition at line 73 of file equitymargincoupon.cpp.
const QuantLib::ext::shared_ptr< QuantExt::EquityIndex2 > & equityCurve | ( | ) | const |
equity reference rate curve
Definition at line 76 of file equitymargincoupon.hpp.
const QuantLib::ext::shared_ptr< FxIndex > & fxIndex | ( | ) | const |
fx index curve
Definition at line 78 of file equitymargincoupon.hpp.
bool isTotalReturn | ( | ) | const |
total return or price return?
Definition at line 80 of file equitymargincoupon.hpp.
Real dividendFactor | ( | ) | const |
are dividends scaled (e.g. to account for tax)
Definition at line 82 of file equitymargincoupon.hpp.
Date fixingStartDate | ( | ) | const |
The date at which the starting equity price is fixed.
Definition at line 84 of file equitymargincoupon.hpp.
Date fixingEndDate | ( | ) | const |
The date at which performance is measured.
Definition at line 86 of file equitymargincoupon.hpp.
std::vector< Date > fixingDates | ( | ) | const |
return both fixing dates
Definition at line 107 of file equitymargincoupon.cpp.
Real initialPrice | ( | ) | const |
initial price
Definition at line 87 of file equitymargincoupon.cpp.
bool initialPriceIsInTargetCcy | ( | ) | const |
initial price is in target ccy (if applicable, i.e. if fxIndex != null, otherwise ignored)
Definition at line 94 of file equitymargincoupon.cpp.
Real quantity | ( | ) | const |
Real fxRate | ( | ) | const |
FX conversion rate (or 1.0 if not applicable)
Definition at line 82 of file equitymargincoupon.cpp.
Date fixingDate | ( | ) | const |
This function is called for other coupon types.
Definition at line 98 of file equitymargincoupon.hpp.
Real marginFactor | ( | ) | const |
InterestRate fixedRate | ( | ) | const |
Real multiplier | ( | ) | const |
|
override |
Definition at line 109 of file equitymargincoupon.hpp.
|
overridevirtual |
Definition at line 142 of file equitymargincoupon.hpp.
void setPricer | ( | const QuantLib::ext::shared_ptr< EquityMarginCouponPricer > & | pricer | ) |
Definition at line 64 of file equitymargincoupon.cpp.
QuantLib::ext::shared_ptr< EquityMarginCouponPricer > pricer | ( | ) | const |
|
protected |
Definition at line 121 of file equitymargincoupon.hpp.
|
protected |
Definition at line 122 of file equitymargincoupon.hpp.
|
protected |
Definition at line 123 of file equitymargincoupon.hpp.
|
protected |
Definition at line 124 of file equitymargincoupon.hpp.
|
protected |
Definition at line 125 of file equitymargincoupon.hpp.
|
protected |
Definition at line 126 of file equitymargincoupon.hpp.
|
protected |
Definition at line 127 of file equitymargincoupon.hpp.
|
protected |
Definition at line 128 of file equitymargincoupon.hpp.
|
protected |
Definition at line 129 of file equitymargincoupon.hpp.
|
protected |
Definition at line 130 of file equitymargincoupon.hpp.
|
protected |
Definition at line 131 of file equitymargincoupon.hpp.
|
protected |
Definition at line 132 of file equitymargincoupon.hpp.
|
protected |
Definition at line 133 of file equitymargincoupon.hpp.
|
protected |
Definition at line 134 of file equitymargincoupon.hpp.
|
protected |
Definition at line 135 of file equitymargincoupon.hpp.
|
protected |
Definition at line 136 of file equitymargincoupon.hpp.
|
protected |
Definition at line 137 of file equitymargincoupon.hpp.