#include <ored/configuration/volatilityconfig.hpp>
Public Member Functions | |
VolatilityDeltaSurfaceConfig (MarketDatum::QuoteType quoteType=MarketDatum::QuoteType::RATE_LNVOL, QuantLib::Exercise::Type exerciseType=QuantLib::Exercise::Type::European, std::string calendarStr=std::string(), QuantLib::Natural priority=0) | |
Default constructor. More... | |
VolatilityDeltaSurfaceConfig (const std::string &deltaType, const std::string &atmType, const std::vector< std::string > &putDeltas, const std::vector< std::string > &callDeltas, const std::vector< std::string > &expiries, const std::string &timeInterpolation, const std::string &strikeInterpolation, bool extrapolation, const std::string &timeExtrapolation, const std::string &strikeExtrapolation, const std::string &atmDeltaType="", bool futurePriceCorrection=true, MarketDatum::QuoteType quoteType=MarketDatum::QuoteType::RATE_LNVOL, QuantLib::Exercise::Type exerciseType=QuantLib::Exercise::Type::European, std::string calendarStr=std::string(), QuantLib::Natural priority=0) | |
Explicit constructor. More... | |
Inspectors | |
const std::string & | deltaType () const |
const std::string & | atmType () const |
const std::vector< std::string > & | putDeltas () const |
const std::vector< std::string > & | callDeltas () const |
const std::vector< std::string > & | expiries () const |
const std::string & | atmDeltaType () const |
bool | futurePriceCorrection () const |
VolatilitySurfaceConfig | |
std::vector< std::pair< std::string, std::string > > | quotes () const override |
Public Member Functions inherited from VolatilitySurfaceConfig | |
VolatilitySurfaceConfig (MarketDatum::QuoteType quoteType=MarketDatum::QuoteType::RATE_LNVOL, QuantLib::Exercise::Type exerciseType=QuantLib::Exercise::Type::European, std::string calendarStr=std::string(), QuantLib::Natural priority=0) | |
Default constructor. More... | |
VolatilitySurfaceConfig (const std::string &timeInterpolation, const std::string &strikeInterpolation, bool extrapolation, const std::string &timeExtrapolation, const std::string &strikeExtrapolation, MarketDatum::QuoteType quoteType=MarketDatum::QuoteType::RATE_LNVOL, QuantLib::Exercise::Type exerciseType=QuantLib::Exercise::Type::European, std::string calendarStr=std::string(), QuantLib::Natural priority=0) | |
Explicit constructor. More... | |
const std::string & | timeInterpolation () const |
const std::string & | strikeInterpolation () const |
bool | extrapolation () const |
const std::string & | timeExtrapolation () const |
const std::string & | strikeExtrapolation () const |
Public Member Functions inherited from QuoteBasedVolatilityConfig | |
QuoteBasedVolatilityConfig (MarketDatum::QuoteType quoteType=MarketDatum::QuoteType::RATE_LNVOL, QuantLib::Exercise::Type exerciseType=QuantLib::Exercise::Type::European, std::string calendarStr=std::string(), QuantLib::Natural priority=0) | |
Default constructor. More... | |
const MarketDatum::QuoteType & | quoteType () const |
const QuantLib::Exercise::Type & | exerciseType () const |
void | fromBaseNode (ore::data::XMLNode *node) |
void | toBaseNode (ore::data::XMLDocument &doc, ore::data::XMLNode *node) const |
Public Member Functions inherited from VolatilityConfig | |
VolatilityConfig (std::string calendarStr=std::string(), QuantLib::Natural priority=0) | |
void | fromXMLNode (ore::data::XMLNode *node) |
void | toXMLNode (XMLDocument &doc, XMLNode *node) const |
QuantLib::Natural | priority () const |
Calendar | calendar () 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... | |
Serialisation | |
std::string | deltaType_ |
std::string | atmType_ |
std::vector< std::string > | putDeltas_ |
std::vector< std::string > | callDeltas_ |
std::vector< std::string > | expiries_ |
std::string | atmDeltaType_ |
bool | futurePriceCorrection_ |
void | fromXML (ore::data::XMLNode *node) override |
ore::data::XMLNode * | toXML (ore::data::XMLDocument &doc) const override |
Additional Inherited Members | |
Protected Member Functions inherited from VolatilitySurfaceConfig | |
void | fromNode (ore::data::XMLNode *node) |
void | addNodes (ore::data::XMLDocument &doc, ore::data::XMLNode *node) const |
Volatility configuration for a 2-D delta volatility surface
Definition at line 294 of file volatilityconfig.hpp.
VolatilityDeltaSurfaceConfig | ( | MarketDatum::QuoteType | quoteType = MarketDatum::QuoteType::RATE_LNVOL , |
QuantLib::Exercise::Type | exerciseType = QuantLib::Exercise::Type::European , |
||
std::string | calendarStr = std::string() , |
||
QuantLib::Natural | priority = 0 |
||
) |
Default constructor.
VolatilityDeltaSurfaceConfig | ( | const std::string & | deltaType, |
const std::string & | atmType, | ||
const std::vector< std::string > & | putDeltas, | ||
const std::vector< std::string > & | callDeltas, | ||
const std::vector< std::string > & | expiries, | ||
const std::string & | timeInterpolation, | ||
const std::string & | strikeInterpolation, | ||
bool | extrapolation, | ||
const std::string & | timeExtrapolation, | ||
const std::string & | strikeExtrapolation, | ||
const std::string & | atmDeltaType = "" , |
||
bool | futurePriceCorrection = true , |
||
MarketDatum::QuoteType | quoteType = MarketDatum::QuoteType::RATE_LNVOL , |
||
QuantLib::Exercise::Type | exerciseType = QuantLib::Exercise::Type::European , |
||
std::string | calendarStr = std::string() , |
||
QuantLib::Natural | priority = 0 |
||
) |
Explicit constructor.
const string & deltaType | ( | ) | const |
Definition at line 311 of file volatilityconfig.cpp.
const string & atmType | ( | ) | const |
Definition at line 313 of file volatilityconfig.cpp.
const vector< string > & putDeltas | ( | ) | const |
Definition at line 315 of file volatilityconfig.cpp.
const vector< string > & callDeltas | ( | ) | const |
Definition at line 317 of file volatilityconfig.cpp.
const vector< string > & expiries | ( | ) | const |
Definition at line 319 of file volatilityconfig.cpp.
const string & atmDeltaType | ( | ) | const |
Definition at line 321 of file volatilityconfig.cpp.
bool futurePriceCorrection | ( | ) | const |
Definition at line 323 of file volatilityconfig.cpp.
|
overridevirtual |
Return a vector of pairs of expiry and strike. The first element in the pair is the expiry and the second element in the pair is the string representation of the strike. This will be useful for building the vector of quote strings in classes that have a VolatilitySurfaceConfig.
Implements VolatilitySurfaceConfig.
Definition at line 325 of file volatilityconfig.cpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 350 of file volatilityconfig.cpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 365 of file volatilityconfig.cpp.
|
private |
Definition at line 335 of file volatilityconfig.hpp.
|
private |
Definition at line 336 of file volatilityconfig.hpp.
|
private |
Definition at line 337 of file volatilityconfig.hpp.
|
private |
Definition at line 338 of file volatilityconfig.hpp.
|
private |
Definition at line 339 of file volatilityconfig.hpp.
|
private |
Definition at line 340 of file volatilityconfig.hpp.
|
private |
Definition at line 341 of file volatilityconfig.hpp.