30#include <ql/instruments/nonstandardswap.hpp>
45 void build(
const QuantLib::ext::shared_ptr<EngineFactory>&)
override;
59 QuantLib::Real
notional()
const override;
60 const std::map<std::string, boost::any>&
additionalData()
const override;
65 std::map<AssetClass, std::set<std::string>>
66 underlyingIndices(
const QuantLib::ext::shared_ptr<ReferenceDataManager>& referenceDataManager =
nullptr)
const override;
73 std::vector<QuantLib::ext::shared_ptr<Instrument>>
buildUnderlyingSwaps(
const QuantLib::ext::shared_ptr<PricingEngine>&,
74 const std::vector<Date>&);
Serializable object holding generic trade data, reporting dimensions.
Serializable object holding option data.
std::vector< QuantLib::ext::shared_ptr< Instrument > > buildUnderlyingSwaps(const QuantLib::ext::shared_ptr< PricingEngine > &, const std::vector< Date > &)
build underlying swaps for exposure simulation
QuantLib::ext::shared_ptr< ExerciseBuilder > exerciseBuilder_
vector< LegData > legData_
QuantLib::Real notional() const override
Return the current notional in npvCurrency. See individual sub-classes for the precise definition.
virtual void fromXML(XMLNode *node) override
virtual XMLNode * toXML(XMLDocument &doc) const override
std::map< AssetClass, std::set< std::string > > underlyingIndices(const QuantLib::ext::shared_ptr< ReferenceDataManager > &referenceDataManager=nullptr) const override
QuantLib::ext::shared_ptr< ore::data::Swap > underlying_
Exercise::Type exerciseType_
const vector< LegData > & legData()
Swaption(const Envelope &env, const OptionData &optionData, const vector< LegData > &legData)
Settlement::Method settlementMethod_
bool hasCashflows() const override
Settlement::Type settlementType_
const OptionData & optionData() const
void build(const QuantLib::ext::shared_ptr< EngineFactory > &) override
Position::Type positionType_
const std::map< std::string, boost::any > & additionalData() const override
returns all additional data returned by the trade once built
Small XML Document wrapper class.
Serializable Credit Default Swap.
trade option data model and serialization
Swap trade data model and serialization.
base trade data model and serialization