Container for storing FX Option conventions. More...
#include <ored/configuration/conventions.hpp>
Public Member Functions | |
Constructors | |
FxOptionConvention () | |
FxOptionConvention (const string &id, const string &fxConventionId, const string &atmType, const string &deltaType, const string &switchTenor="", const string &longTermAtmType="", const string &longTermDeltaType="", const string &riskReversalInFavorOf="Call", const string &butterflyStyle="Broker") | |
Inspectors | |
const string & | fxConventionID () const |
const DeltaVolQuote::AtmType & | atmType () const |
const DeltaVolQuote::DeltaType & | deltaType () const |
const Period & | switchTenor () const |
const DeltaVolQuote::AtmType & | longTermAtmType () const |
const DeltaVolQuote::DeltaType & | longTermDeltaType () const |
const QuantLib::Option::Type & | riskReversalInFavorOf () const |
const bool | butterflyIsBrokerStyle () const |
Public Member Functions inherited from Convention | |
virtual | ~Convention () |
Default destructor. More... | |
const string & | id () const |
Type | type () 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 | |
string | fxConventionID_ |
DeltaVolQuote::AtmType | atmType_ |
DeltaVolQuote::AtmType | longTermAtmType_ |
DeltaVolQuote::DeltaType | deltaType_ |
DeltaVolQuote::DeltaType | longTermDeltaType_ |
Period | switchTenor_ |
QuantLib::Option::Type | riskReversalInFavorOf_ |
bool | butterflyIsBrokerStyle_ |
string | strAtmType_ |
string | strDeltaType_ |
string | strSwitchTenor_ |
string | strLongTermAtmType_ |
string | strLongTermDeltaType_ |
string | strRiskReversalInFavorOf_ |
string | strButterflyStyle_ |
virtual void | fromXML (XMLNode *node) override |
virtual XMLNode * | toXML (XMLDocument &doc) const override |
virtual void | build () override |
Additional Inherited Members | |
Public Types inherited from Convention | |
enum class | Type { Zero , Deposit , Future , FRA , OIS , Swap , AverageOIS , TenorBasisSwap , TenorBasisTwoSwap , BMABasisSwap , FX , CrossCcyBasis , CrossCcyFixFloat , CDS , IborIndex , OvernightIndex , SwapIndex , ZeroInflationIndex , InflationSwap , SecuritySpread , CMSSpreadOption , CommodityForward , CommodityFuture , FxOption , BondYield } |
Supported convention types. More... | |
Protected Member Functions inherited from Convention | |
Convention () | |
Convention (const string &id, Type type) | |
Protected Attributes inherited from Convention | |
Type | type_ |
string | id_ |
Container for storing FX Option conventions.
Defining a switchTenor is optional. It is set to 0 * Days if no switch tenor is defined. In this case longTermAtmType and longTermDeltaType are set to atmType and deltaType respectively.
Definition at line 1698 of file conventions.hpp.
Definition at line 1702 of file conventions.hpp.
FxOptionConvention | ( | const string & | id, |
const string & | fxConventionId, | ||
const string & | atmType, | ||
const string & | deltaType, | ||
const string & | switchTenor = "" , |
||
const string & | longTermAtmType = "" , |
||
const string & | longTermDeltaType = "" , |
||
const string & | riskReversalInFavorOf = "Call" , |
||
const string & | butterflyStyle = "Broker" |
||
) |
Definition at line 2302 of file conventions.cpp.
const string & fxConventionID | ( | ) | const |
Definition at line 1711 of file conventions.hpp.
const DeltaVolQuote::AtmType & atmType | ( | ) | const |
Definition at line 1712 of file conventions.hpp.
const DeltaVolQuote::DeltaType & deltaType | ( | ) | const |
Definition at line 1713 of file conventions.hpp.
const Period & switchTenor | ( | ) | const |
Definition at line 1714 of file conventions.hpp.
const DeltaVolQuote::AtmType & longTermAtmType | ( | ) | const |
Definition at line 1715 of file conventions.hpp.
const DeltaVolQuote::DeltaType & longTermDeltaType | ( | ) | const |
Definition at line 1716 of file conventions.hpp.
const QuantLib::Option::Type & riskReversalInFavorOf | ( | ) | const |
Definition at line 1717 of file conventions.hpp.
const bool butterflyIsBrokerStyle | ( | ) | const |
Definition at line 1718 of file conventions.hpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 2338 of file conventions.cpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 2356 of file conventions.cpp.
|
overridevirtual |
Implements Convention.
Definition at line 2312 of file conventions.cpp.
|
private |
Definition at line 1728 of file conventions.hpp.
|
private |
Definition at line 1729 of file conventions.hpp.
|
private |
Definition at line 1729 of file conventions.hpp.
|
private |
Definition at line 1730 of file conventions.hpp.
|
private |
Definition at line 1730 of file conventions.hpp.
|
private |
Definition at line 1731 of file conventions.hpp.
|
private |
Definition at line 1732 of file conventions.hpp.
|
private |
Definition at line 1733 of file conventions.hpp.
|
private |
Definition at line 1736 of file conventions.hpp.
|
private |
Definition at line 1737 of file conventions.hpp.
|
private |
Definition at line 1738 of file conventions.hpp.
|
private |
Definition at line 1739 of file conventions.hpp.
|
private |
Definition at line 1740 of file conventions.hpp.
|
private |
Definition at line 1741 of file conventions.hpp.
|
private |
Definition at line 1742 of file conventions.hpp.