29#include <ql/instruments/barriertype.hpp>
54 void build(
const QuantLib::ext::shared_ptr<EngineFactory>&)
override;
Serializable obejct holding barrier data.
Serializable object holding generic trade data, reporting dimensions.
Serializable FX European Barrier Option.
double soldAmount() const
const BarrierData & barrier() const
const OptionData & option() const
virtual void fromXML(XMLNode *node) override
virtual XMLNode * toXML(XMLDocument &doc) const override
FxEuropeanBarrierOption()
Default constructor.
bool checkBarrier(Real spot, Barrier::Type type, Real level)
std::string fxIndex_
If the option has automatic exercise (i.e. cash settled after maturity), need an FX index for settlem...
const std::string & fxIndex() const
double boughtAmount() const
FxEuropeanBarrierOption(Envelope &env, OptionData option, BarrierData barrier, string boughtCurrency, double boughtAmount, string soldCurrency, double soldAmount, string startDate="", string calendar="", string fxIndex="")
Constructor.
void build(const QuantLib::ext::shared_ptr< EngineFactory > &) override
Build QuantLib/QuantExt instrument, link pricing engine.
Base class for all single asset FX Derivaties.
const std::string & soldCurrency() const
const std::string & boughtCurrency() const
Serializable object holding option data.
Small XML Document wrapper class.
Serializable Credit Default Swap.
trade option data model and serialization