#include <ored/portfolio/indexcreditdefaultswapdata.hpp>
Public Types | |
using | PPT = QuantExt::CreditDefaultSwap::ProtectionPaymentTime |
Public Types inherited from CreditDefaultSwapData | |
using | PPT = QuantLib::CreditDefaultSwap::ProtectionPaymentTime |
Public Member Functions | |
IndexCreditDefaultSwapData () | |
Default constructor. More... | |
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. More... | |
XMLSerializable interface | |
void | fromXML (ore::data::XMLNode *node) override |
ore::data::XMLNode * | toXML (ore::data::XMLDocument &doc) const override |
Inspectors | |
const BasketData & | basket () const |
std::string | creditCurveIdWithTerm () const |
void | setIndexStartDateHint (const QuantLib::Date &d) const |
const QuantLib::Date & | indexStartDateHint () const |
Public Member Functions inherited from CreditDefaultSwapData | |
CreditDefaultSwapData () | |
Default constructor. More... | |
CreditDefaultSwapData (const string &issuerId, const string &creditCurveId, const LegData &leg, const bool settlesAccrual=true, const PPT protectionPaymentTime=PPT::atDefault, const Date &protectionStart=Date(), const Date &upfrontDate=Date(), const Real upfrontFee=Null< Real >(), QuantLib::Real recoveryRate=QuantLib::Null< QuantLib::Real >(), const std::string &referenceObligation="", const Date &tradeDate=Date(), const std::string &cashSettlementDays="", const bool rebatesAccrual=true) | |
Constructor that takes an explicit creditCurveId . More... | |
CreditDefaultSwapData (const std::string &issuerId, const CdsReferenceInformation &referenceInformation, const LegData &leg, bool settlesAccrual=true, const PPT protectionPaymentTime=PPT::atDefault, const QuantLib::Date &protectionStart=QuantLib::Date(), const QuantLib::Date &upfrontDate=QuantLib::Date(), QuantLib::Real upfrontFee=QuantLib::Null< QuantLib::Real >(), QuantLib::Real recoveryRate=QuantLib::Null< QuantLib::Real >(), const std::string &referenceObligation="", const Date &tradeDate=Date(), const std::string &cashSettlementDays="", const bool rebatesAccrual=true) | |
Constructor that takes a referenceInformation object. More... | |
void | fromXML (XMLNode *node) override |
XMLNode * | toXML (XMLDocument &doc) const override |
const string & | issuerId () const |
const string & | creditCurveId () const |
const LegData & | leg () const |
bool | settlesAccrual () const |
PPT | protectionPaymentTime () const |
const Date & | protectionStart () const |
const Date & | upfrontDate () const |
Real | upfrontFee () const |
bool | rebatesAccrual () const |
QuantLib::Real | recoveryRate () const |
const std::string & | referenceObligation () const |
CDS Reference Obligation. More... | |
const QuantLib::Date & | tradeDate () const |
QuantLib::Natural | cashSettlementDays () const |
const boost::optional< CdsReferenceInformation > & | referenceInformation () const |
Public Member Functions inherited from XMLSerializable | |
virtual | ~XMLSerializable () |
virtual void | fromXML (XMLNode *node)=0 |
virtual XMLNode * | toXML (XMLDocument &doc) const =0 |
void | fromFile (const std::string &filename) |
void | toFile (const std::string &filename) const |
void | fromXMLString (const std::string &xml) |
Parse from XML string. More... | |
std::string | toXMLString () const |
Parse from XML string. More... | |
CreditDefaultSwapData interface | |
BasketData | basket_ |
QuantLib::Date | indexStartDateHint_ |
void | check (ore::data::XMLNode *node) const override |
ore::data::XMLNode * | alloc (ore::data::XMLDocument &doc) const override |
Additional Inherited Members | |
virtual void | check (XMLNode *node) const |
virtual XMLNode * | alloc (XMLDocument &doc) const |
Definition at line 30 of file indexcreditdefaultswapdata.hpp.
using PPT = QuantExt::CreditDefaultSwap::ProtectionPaymentTime |
Definition at line 35 of file indexcreditdefaultswapdata.hpp.
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.
|
overridevirtual |
Reimplemented from CreditDefaultSwapData.
Definition at line 61 of file indexcreditdefaultswapdata.cpp.
|
overridevirtual |
Reimplemented from CreditDefaultSwapData.
Definition at line 71 of file indexcreditdefaultswapdata.cpp.
const BasketData & basket | ( | ) | const |
Definition at line 58 of file indexcreditdefaultswapdata.hpp.
std::string creditCurveIdWithTerm | ( | ) | const |
Get credit curve id with term suffix "_5Y". If the creditCurveId contains such a suffix already this is used. Otherwise we try to imply it from the schedule. If that is not possible, the creditCurveId without tenor is returned.
Definition at line 90 of file indexcreditdefaultswapdata.cpp.
void setIndexStartDateHint | ( | const QuantLib::Date & | d | ) | const |
If set this is used to derive the term instead of the schedule start date. A concession to bad trade setups really, where the start date is not set to the index effective date
Definition at line 68 of file indexcreditdefaultswapdata.hpp.
const QuantLib::Date & indexStartDateHint | ( | ) | const |
Get the index start date hint, or null if it was never set
Definition at line 71 of file indexcreditdefaultswapdata.hpp.
|
overrideprotectedvirtual |
Reimplemented from CreditDefaultSwapData.
Definition at line 82 of file indexcreditdefaultswapdata.cpp.
|
overrideprotectedvirtual |
Reimplemented from CreditDefaultSwapData.
Definition at line 86 of file indexcreditdefaultswapdata.cpp.
|
private |
Definition at line 81 of file indexcreditdefaultswapdata.hpp.
|
mutableprivate |
Definition at line 82 of file indexcreditdefaultswapdata.hpp.