Class DigitalIborCoupon
A Ibor coupon with a digital call, a digital put or both: QuantLib's DigitalIborCoupon.
public sealed class DigitalIborCoupon : DigitalCoupon
- Inheritance
-
DigitalIborCoupon
- Inherited Members
- Extension Methods
Remarks
A DigitalCoupon on a IborCoupon, replicated through capped and floored coupons on it, each priced by its IborCouponPricer (the visitor refuses any other pricer). Built by DigitalIborLeg.
Constructors
DigitalIborCoupon(IborCoupon, double?, PositionType, bool, double?, double?, PositionType, bool, double?, DigitalReplication?, bool)
Initializes a new instance of the DigitalIborCoupon class.
public DigitalIborCoupon(IborCoupon underlying, double? callStrike = null, PositionType callPosition = PositionType.Long, bool isCallAtmIncluded = false, double? callDigitalPayoff = null, double? putStrike = null, PositionType putPosition = PositionType.Long, bool isPutAtmIncluded = false, double? putDigitalPayoff = null, DigitalReplication? replication = null, bool nakedOption = false)
Parameters
underlyingIborCouponThe Ibor coupon whose rate the options are on.
callStrikedouble?The call's strike, or null for no call.
callPositionPositionTypeThe call's position.
isCallAtmIncludedboolWhether a fixed rate at the call's strike pays the call.
callDigitalPayoffdouble?The cash-or-nothing call's payoff, or null for an asset-or-nothing call.
putStrikedouble?The put's strike, or null for no put.
putPositionPositionTypeThe put's position.
isPutAtmIncludedboolWhether a fixed rate at the put's strike pays the put.
putDigitalPayoffdouble?The cash-or-nothing put's payoff, or null for an asset-or-nothing put.
replicationDigitalReplicationThe replication; QuantLib's default, central with a gap of 1e-4, when null.
nakedOptionboolWhether the coupon pays the options alone, without the underlying's rate.
Exceptions
- ArgumentNullException
underlyingis null.- ArgumentException
The replication's gap isn't positive, or a payoff is given without its strike.
- ArgumentOutOfRangeException
A position given with its strike isn't a member of its type.