26#ifndef quantlib_digital_ibor_coupon_hpp
27#define quantlib_digital_ibor_coupon_hpp
42 bool isCallATMIncluded =
false,
46 bool isPutATMIncluded =
false,
48 const ext::shared_ptr<DigitalReplication>& replication = {},
49 bool nakedOption =
false);
89 [[deprecated(
"Use the overload that passes a replication instead")]]
degenerate base class for the Acyclic Visitor pattern
Rate putDigitalPayoff() const
ext::shared_ptr< FloatingRateCoupon > underlying() const
Rate callDigitalPayoff() const
Ibor rate coupon with digital digital call/put option.
void accept(AcyclicVisitor &) override
helper class building a sequence of digital ibor-rate coupons
BusinessDayConvention paymentAdjustment_
DigitalIborLeg & withNakedOption(bool nakedOption=true)
std::vector< Rate > putStrikes_
DigitalIborLeg & withPaymentDayCounter(const DayCounter &)
DigitalIborLeg & withGearings(Real gearing)
DigitalIborLeg & withPutStrikes(Rate strike)
std::vector< Rate > callStrikes_
DigitalIborLeg & withSpreads(Spread spread)
std::vector< Real > notionals_
std::vector< Spread > spreads_
std::vector< Rate > callPayoffs_
DigitalIborLeg & withFixingDays(Natural fixingDays)
DigitalIborLeg & withReplication()
DigitalIborLeg & inArrears(bool flag=true)
DigitalIborLeg & withCallATM(bool flag=true)
DigitalIborLeg & withLongPutOption(Position::Type)
DigitalIborLeg & withCallStrikes(Rate strike)
Position::Type longPutOption_
DigitalIborLeg & withPutATM(bool flag=true)
std::vector< Natural > fixingDays_
DigitalIborLeg & withPutPayoffs(Rate payoff)
ext::shared_ptr< DigitalReplication > replication_
std::vector< Rate > putPayoffs_
DigitalIborLeg & withCallPayoffs(Rate payoff)
DigitalIborLeg & withNotionals(Real notional)
Position::Type longCallOption_
std::vector< Real > gearings_
DigitalIborLeg & withLongCallOption(Position::Type)
DigitalIborLeg & withPaymentAdjustment(BusinessDayConvention)
DayCounter paymentDayCounter_
ext::shared_ptr< IborIndex > index_
template class providing a null value for a given type.
Floating-rate coupon with digital call/put option.
BusinessDayConvention
Business Day conventions.
unsigned QL_INTEGER Natural
positive integer
Real Spread
spreads on interest rates
Coupon paying a Libor-type index.
ext::shared_ptr< QuantLib::Payoff > payoff
std::vector< ext::shared_ptr< CashFlow > > Leg
Sequence of cash-flows.