25#include <ql/instruments/creditdefaultswap.hpp>
35 using PPT = QuantExt::CreditDefaultSwap::ProtectionPaymentTime;
44 const QuantLib::Date&
upfrontDate = QuantLib::Date(),
45 const QuantLib::Real
upfrontFee = QuantLib::Null<QuantLib::Real>(),
46 const QuantLib::Date&
tradeDate = QuantLib::Date(),
credit basket data model and serialization
const Date & upfrontDate() const
QuantLib::Natural cashSettlementDays() const
const LegData & leg() const
bool settlesAccrual() const
const QuantLib::Date & tradeDate() const
PPT protectionPaymentTime() const
const string & creditCurveId() const
bool rebatesAccrual() const
const Date & protectionStart() const
const BasketData & basket() const
ore::data::XMLNode * alloc(ore::data::XMLDocument &doc) const override
IndexCreditDefaultSwapData(const std::string &creditCurveId, const BasketData &basket, const ore::data::LegData &leg, const bool settlesAccrual=true, const PPT protectionPaymentTime=PPT::atDefault, const QuantLib::Date &protectionStart=QuantLib::Date(), const QuantLib::Date &upfrontDate=QuantLib::Date(), const QuantLib::Real upfrontFee=QuantLib::Null< QuantLib::Real >(), const QuantLib::Date &tradeDate=QuantLib::Date(), const std::string &cashSettlementDays="", const bool rebatesAccrual=true)
Detailed constructor.
void setIndexStartDateHint(const QuantLib::Date &d) const
void fromXML(ore::data::XMLNode *node) override
QuantLib::Date indexStartDateHint_
ore::data::XMLNode * toXML(ore::data::XMLDocument &doc) const override
QuantExt::CreditDefaultSwap::ProtectionPaymentTime PPT
const QuantLib::Date & indexStartDateHint() const
IndexCreditDefaultSwapData()
Default constructor.
std::string creditCurveIdWithTerm() const
Serializable object holding leg data.
Small XML Document wrapper class.
A class to hold credit default swap data.
leg data model and serialization
Serializable Credit Default Swap.
base trade data model and serialization