39 Swap(
const string swapType =
"Swap") :
Trade(swapType) {}
44 Swap(
const Envelope& env,
const vector<LegData>& legData,
const string swapType =
"Swap",
45 const std::string settlement =
"Physical")
50 const std::string settlement =
"Physical")
51 :
Trade(swapType, env),
legData_({leg0, leg1}), settlement_(settlement) {}
54 virtual void build(
const QuantLib::ext::shared_ptr<EngineFactory>&)
override;
55 virtual void setIsdaTaxonomyFields();
56 QuantLib::Real notional()
const override;
57 std::string notionalCurrency()
const override;
60 std::map<AssetClass, std::set<std::string>>
61 underlyingIndices(
const QuantLib::ext::shared_ptr<ReferenceDataManager>& referenceDataManager =
nullptr)
const override;
68 virtual void fromXML(
XMLNode* node)
override;
77 const std::map<std::string,boost::any>& additionalData()
const override;
80 virtual QuantLib::ext::shared_ptr<LegData> createLegData()
const;
91std::string
isdaSubProductSwap(
const std::string& tradeId,
const vector<LegData>& legData);
Serializable object holding generic trade data, reporting dimensions.
Serializable object holding leg data.
Serializable Swap, Single and Cross Currency.
const vector< LegData > & legData() const
Swap(const Envelope &env, const LegData &leg0, const LegData &leg1, const string swapType="Swap", const std::string settlement="Physical")
Constructor with two legs.
vector< LegData > legData_
const string & settlement() const
Settlement Type can be set to "Cash" for NDF. Default value is "Physical".
Size notionalTakenFromLeg_
Swap(const string swapType="Swap")
Default constructor.
Swap(const Envelope &env, const string swapType="Swap")
Swap(const Envelope &env, const vector< LegData > &legData, const string swapType="Swap", const std::string settlement="Physical")
Constructor with vector of LegData.
Small XML Document wrapper class.
leg data model and serialization
std::string isdaSubProductSwap(const std::string &tradeId, const vector< LegData > &legData)
Serializable Credit Default Swap.
base trade data model and serialization