Commodity option data class. More...
#include <ored/marketdata/marketdatum.hpp>
Public Member Functions | |
CommodityOptionQuote () | |
CommodityOptionQuote (QuantLib::Real value, const QuantLib::Date &asof, const std::string &name, QuoteType quoteType, const std::string &commodityName, const std::string "eCurrency, const QuantLib::ext::shared_ptr< Expiry > &expiry, const QuantLib::ext::shared_ptr< BaseStrike > &strike, QuantLib::Option::Type optionType=QuantLib::Option::Call) | |
Constructor. More... | |
QuantLib::ext::shared_ptr< MarketDatum > | clone () override |
Make a copy of the market datum. More... | |
![]() | |
MarketDatum () | |
MarketDatum (Real value, Date asofDate, const string &name, QuoteType quoteType, InstrumentType instrumentType) | |
Constructor. More... | |
virtual | ~MarketDatum () |
Default destructor. More... | |
virtual QuantLib::ext::shared_ptr< MarketDatum > | clone () |
Make a copy of the market datum. More... | |
const string & | name () const |
const Handle< Quote > & | quote () const |
Date | asofDate () const |
InstrumentType | instrumentType () const |
QuoteType | quoteType () const |
Inspectors | |
std::string | commodityName_ |
std::string | quoteCurrency_ |
QuantLib::ext::shared_ptr< Expiry > | expiry_ |
QuantLib::ext::shared_ptr< BaseStrike > | strike_ |
QuantLib::Option::Type | optionType_ |
class | boost::serialization::access |
Serialization. More... | |
const std::string & | commodityName () const |
const std::string & | quoteCurrency () const |
const QuantLib::ext::shared_ptr< Expiry > & | expiry () const |
const QuantLib::ext::shared_ptr< BaseStrike > & | strike () const |
QuantLib::Option::Type | optionType () const |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
Commodity option data class.
This class holds single market points of type COMMODITY_OPTION
Definition at line 1790 of file marketdatum.hpp.
Definition at line 1792 of file marketdatum.hpp.
CommodityOptionQuote | ( | QuantLib::Real | value, |
const QuantLib::Date & | asof, | ||
const std::string & | name, | ||
QuoteType | quoteType, | ||
const std::string & | commodityName, | ||
const std::string & | quoteCurrency, | ||
const QuantLib::ext::shared_ptr< Expiry > & | expiry, | ||
const QuantLib::ext::shared_ptr< BaseStrike > & | strike, | ||
QuantLib::Option::Type | optionType = QuantLib::Option::Call |
||
) |
Constructor.
value | The volatility value |
asof | The quote date |
name | The quote name |
quoteType | The quote type, should be RATE_LNVOL |
commodityName | The name of the underlying commodity |
quoteCurrency | The quote currency |
expiry | Expiry object defining the quote's expiry |
strike | Strike object defining the quote's strike |
optionType | The option type. |
|
overridevirtual |
Make a copy of the market datum.
Reimplemented from MarketDatum.
Definition at line 1811 of file marketdatum.hpp.
const std::string & commodityName | ( | ) | const |
Definition at line 1818 of file marketdatum.hpp.
const std::string & quoteCurrency | ( | ) | const |
Definition at line 1819 of file marketdatum.hpp.
const QuantLib::ext::shared_ptr< Expiry > & expiry | ( | ) | const |
Definition at line 1820 of file marketdatum.hpp.
const QuantLib::ext::shared_ptr< BaseStrike > & strike | ( | ) | const |
Definition at line 1821 of file marketdatum.hpp.
QuantLib::Option::Type optionType | ( | ) | const |
Definition at line 1822 of file marketdatum.hpp.
|
private |
Definition at line 624 of file marketdatum.cpp.
|
friend |
Serialization.
Definition at line 1832 of file marketdatum.hpp.
|
private |
Definition at line 1826 of file marketdatum.hpp.
|
private |
Definition at line 1827 of file marketdatum.hpp.
|
private |
Definition at line 1828 of file marketdatum.hpp.
|
private |
Definition at line 1829 of file marketdatum.hpp.
|
private |
Definition at line 1830 of file marketdatum.hpp.