29#include <ql/instruments/barriertype.hpp>
55 void build(
const QuantLib::ext::shared_ptr<EngineFactory>&)
override;
74 bool checkBarrier(Real spot, Barrier::Type type, Real level);
Serializable object holding generic trade data, reporting dimensions.
Serializable FX KIKO Barrier Option.
double soldAmount() const
const OptionData & option() const
vector< BarrierData > barriers_
const vector< BarrierData > & barriers() const
const string & startDate() const
FxKIKOBarrierOption(Envelope &env, OptionData option, vector< BarrierData > barriers, string boughtCurrency, double boughtAmount, string soldCurrency, double soldAmount, string startDate="", string calendar="", string fxIndex="")
Constructor.
virtual void fromXML(XMLNode *node) override
virtual XMLNode * toXML(XMLDocument &doc) const override
const string & fxIndex() const
bool checkBarrier(Real spot, Barrier::Type type, Real level)
const string & calendar() const
FxKIKOBarrierOption()
Default constructor.
double boughtAmount() const
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