24 const QuantLib::ext::shared_ptr<QuantLib::IborIndex>& index,
const double strikeRate)
25 :
QuantLib::IborCoupon(startDate, nominal, startDate,
26 index->fixingCalendar().adjust(endDate, index->businessDayConvention()),
27 index->fixingDate(startDate), index, 1.0, -strikeRate) {}
30 return QuantLib::IborCoupon::amount() /
31 (1 + QuantLib::IborCoupon::accrualPeriod() * QuantLib::IborCoupon::indexFixing());
QuantLib::Real amount() const override
IborFraCoupon(const QuantLib::Date &startDate, const QuantLib::Date &endDate, QuantLib::Real nominal, const QuantLib::ext::shared_ptr< QuantLib::IborIndex > &index, const double strikeRate)
coupon representing an forward rate agreement