Class CappedFlooredCmsCoupon
A CMS coupon with a cap, a floor or both on its rate: a CappedFlooredCoupon over a CmsCoupon it builds.
public sealed class CappedFlooredCmsCoupon : CappedFlooredCoupon
- Inheritance
-
CappedFlooredCmsCoupon
- Inherited Members
- Extension Methods
Remarks
It is built with no pricer, as QuantLib's is. Its rate needs a CmsCouponPricer, which CouponPricerFunctions sets on it and its CMS coupon, refusing any other pricer as QuantLib's visitor does; the cap's and floor's optionlet rates and the swaplet rate are read from one state of the pricer's.
Constructors
CappedFlooredCmsCoupon(Date, double, Date, Date, int?, SwapIndex, double, double, double?, double?, Date?, Date?, DayCounter?, bool, Date?, BusinessDayConvention)
Initializes a new instance of the CappedFlooredCmsCoupon class.
public CappedFlooredCmsCoupon(Date paymentDate, double nominal, Date startDate, Date endDate, int? fixingDays, SwapIndex index, double gearing = 1, double spread = 0, double? cap = null, double? floor = null, Date? refPeriodStart = null, Date? refPeriodEnd = null, DayCounter? dayCounter = null, bool isInArrears = false, Date? exCouponDate = null, BusinessDayConvention fixingConvention = BusinessDayConvention.Preceding)
Parameters
paymentDateDateThe payment date.
nominaldoubleThe nominal.
startDateDateThe start of the accrual period.
endDateDateThe end of the accrual period.
fixingDaysint?The business days from the fixing date to the accrual start (or end, in arrears); the index's fixing days when null, QuantLib's
Null<Natural>().indexSwapIndexThe swap index.
gearingdoubleThe gearing applied to the index fixing.
spreaddoubleThe spread added to the geared fixing.
capdouble?The cap on the coupon's rate, or null for none.
floordouble?The floor on the coupon's rate, or null for none.
refPeriodStartDate?The reference period's start; the accrual start when null.
refPeriodEndDate?The reference period's end; the accrual end when null.
dayCounterDayCounterThe accrual day counter; the index's when null.
isInArrearsboolWhether the index fixes at the end of the accrual period.
exCouponDateDate?The ex-coupon date, if any.
fixingConventionBusinessDayConventionThe convention adjusting the fixing date.
Exceptions
- ArgumentException
The gearing is zero, or the cap is less than the floor.
- ArgumentOutOfRangeException
fixingDaysis negative, orfixingConventionisn't a member of its type.