#include <qle/instruments/indexcreditdefaultswap.hpp>
|
| IndexCreditDefaultSwap (Protection::Side side, Real notional, std::vector< Real > underlyingNotionals, Rate spread, const Schedule &schedule, BusinessDayConvention paymentConvention, const DayCounter &dayCounter, bool settlesAccrual=true, ProtectionPaymentTime protectionPaymentTime=atDefault, const Date &protectionStart=Date(), const QuantLib::ext::shared_ptr< Claim > &claim=QuantLib::ext::shared_ptr< Claim >(), const DayCounter &lastPeriodDayCounter=DayCounter(), bool rebatesAccrual=true, const Date &tradeDate=Date(), Natural cashSettlementDays=3) |
|
| IndexCreditDefaultSwap (Protection::Side side, Real notional, std::vector< Real > underlyingNotionals, Rate upfront, Rate spread, const Schedule &schedule, BusinessDayConvention paymentConvention, const DayCounter &dayCounter, bool settlesAccrual=true, ProtectionPaymentTime protectionPaymentTime=atDefault, const Date &protectionStart=Date(), const Date &upfrontDate=Date(), const QuantLib::ext::shared_ptr< Claim > &claim=QuantLib::ext::shared_ptr< Claim >(), const DayCounter &lastPeriodDayCounter=DayCounter(), bool rebatesAccrual=true, const Date &tradeDate=Date(), Natural cashSettlementDays=3) |
|
|
const std::vector< Real > & | underlyingNotionals () const |
|
|
|
virtual QuantLib::ext::shared_ptr< PricingEngine > | buildPricingEngine (const Handle< DefaultProbabilityTermStructure > &p, Real r, const Handle< YieldTermStructure > &d, PricingModel model=Midpoint) const override |
|
Definition at line 42 of file indexcreditdefaultswap.hpp.
◆ IndexCreditDefaultSwap() [1/2]
IndexCreditDefaultSwap |
( |
Protection::Side |
side, |
|
|
Real |
notional, |
|
|
std::vector< Real > |
underlyingNotionals, |
|
|
Rate |
spread, |
|
|
const Schedule & |
schedule, |
|
|
BusinessDayConvention |
paymentConvention, |
|
|
const DayCounter & |
dayCounter, |
|
|
bool |
settlesAccrual = true , |
|
|
ProtectionPaymentTime |
protectionPaymentTime = atDefault , |
|
|
const Date & |
protectionStart = Date() , |
|
|
const QuantLib::ext::shared_ptr< Claim > & |
claim = QuantLib::ext::shared_ptr<Claim>() , |
|
|
const DayCounter & |
lastPeriodDayCounter = DayCounter() , |
|
|
bool |
rebatesAccrual = true , |
|
|
const Date & |
tradeDate = Date() , |
|
|
Natural |
cashSettlementDays = 3 |
|
) |
| |
Definition at line 48 of file indexcreditdefaultswap.hpp.
58 : QuantLib::CreditDefaultSwap(side, notional, spread, schedule, paymentConvention, dayCounter, settlesAccrual,
59 protectionPaymentTime, protectionStart, claim, lastPeriodDayCounter, rebatesAccrual,
60 tradeDate, cashSettlementDays),
const std::vector< Real > & underlyingNotionals() const
std::vector< Real > underlyingNotionals_
◆ IndexCreditDefaultSwap() [2/2]
IndexCreditDefaultSwap |
( |
Protection::Side |
side, |
|
|
Real |
notional, |
|
|
std::vector< Real > |
underlyingNotionals, |
|
|
Rate |
upfront, |
|
|
Rate |
spread, |
|
|
const Schedule & |
schedule, |
|
|
BusinessDayConvention |
paymentConvention, |
|
|
const DayCounter & |
dayCounter, |
|
|
bool |
settlesAccrual = true , |
|
|
ProtectionPaymentTime |
protectionPaymentTime = atDefault , |
|
|
const Date & |
protectionStart = Date() , |
|
|
const Date & |
upfrontDate = Date() , |
|
|
const QuantLib::ext::shared_ptr< Claim > & |
claim = QuantLib::ext::shared_ptr<Claim>() , |
|
|
const DayCounter & |
lastPeriodDayCounter = DayCounter() , |
|
|
bool |
rebatesAccrual = true , |
|
|
const Date & |
tradeDate = Date() , |
|
|
Natural |
cashSettlementDays = 3 |
|
) |
| |
Definition at line 63 of file indexcreditdefaultswap.hpp.
73 : QuantLib::CreditDefaultSwap(side, notional, upfront, spread, schedule, paymentConvention, dayCounter, settlesAccrual,
74 protectionPaymentTime, protectionStart, upfrontDate, claim, lastPeriodDayCounter,
75 rebatesAccrual, tradeDate, cashSettlementDays),
◆ underlyingNotionals()
const std::vector< Real > & underlyingNotionals |
( |
| ) |
const |
◆ setupArguments()
void setupArguments |
( |
PricingEngine::arguments * |
args | ) |
const |
|
override |
Definition at line 24 of file indexcreditdefaultswap.cpp.
24 {
25 CreditDefaultSwap::setupArguments(args);
26 IndexCreditDefaultSwap::arguments* arguments = dynamic_cast<IndexCreditDefaultSwap::arguments*>(args);
27 QL_REQUIRE(arguments != 0, "wrong argument type");
29}
◆ buildPricingEngine()
QuantLib::ext::shared_ptr< PricingEngine > buildPricingEngine |
( |
const Handle< DefaultProbabilityTermStructure > & |
p, |
|
|
Real |
r, |
|
|
const Handle< YieldTermStructure > & |
d, |
|
|
PricingModel |
model = Midpoint |
|
) |
| const |
|
overrideprotectedvirtual |
Definition at line 32 of file indexcreditdefaultswap.cpp.
33 {
34 return QuantLib::ext::make_shared<MidPointIndexCdsEngine>(p, r, d, true);
35}
◆ underlyingNotionals_
std::vector<Real> underlyingNotionals_ |
|
protected |