Base market data class. More...
#include <ored/marketdata/marketdatum.hpp>
Public Types | |
enum class | InstrumentType { ZERO , DISCOUNT , MM , MM_FUTURE , OI_FUTURE , FRA , IMM_FRA , IR_SWAP , BASIS_SWAP , BMA_SWAP , CC_BASIS_SWAP , CC_FIX_FLOAT_SWAP , CDS , CDS_INDEX , FX_SPOT , FX_FWD , HAZARD_RATE , RECOVERY_RATE , SWAPTION , CAPFLOOR , FX_OPTION , ZC_INFLATIONSWAP , ZC_INFLATIONCAPFLOOR , YY_INFLATIONSWAP , YY_INFLATIONCAPFLOOR , SEASONALITY , EQUITY_SPOT , EQUITY_FWD , EQUITY_DIVIDEND , EQUITY_OPTION , BOND , BOND_OPTION , INDEX_CDS_OPTION , COMMODITY_SPOT , COMMODITY_FWD , CORRELATION , COMMODITY_OPTION , CPR , RATING , NONE } |
Supported market instrument types. More... | |
enum class | QuoteType { BASIS_SPREAD , CREDIT_SPREAD , CONV_CREDIT_SPREAD , YIELD_SPREAD , HAZARD_RATE , RATE , RATIO , PRICE , RATE_LNVOL , RATE_NVOL , RATE_SLNVOL , BASE_CORRELATION , SHIFT , TRANSITION_PROBABILITY , NONE } |
Supported market quote types. More... | |
Public Member Functions | |
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... | |
Inspectors | |
Handle< Quote > | quote_ |
Date | asofDate_ |
string | name_ |
InstrumentType | instrumentType_ |
QuoteType | quoteType_ |
class | boost::serialization::access |
Serialization. More... | |
const string & | name () const |
const Handle< Quote > & | quote () const |
Date | asofDate () const |
InstrumentType | instrumentType () const |
QuoteType | quoteType () const |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
Base market data class.
This class holds a single market point, a SimpleQuote pointer and generic additional information.
The market point is classified by an instrument type, a quote type and a name string. The name's structure depends on the market point's type with tokens separated by "/".
Specific market data classes are derived from this base class and hold additional specific data that are represented by the market point's name.
Definition at line 78 of file marketdatum.hpp.
|
strong |
Supported market instrument types.
Definition at line 82 of file marketdatum.hpp.
|
strong |
Supported market quote types.
Enumerator | |
---|---|
BASIS_SPREAD | |
CREDIT_SPREAD | |
CONV_CREDIT_SPREAD | |
YIELD_SPREAD | |
HAZARD_RATE | |
RATE | |
RATIO | |
PRICE | |
RATE_LNVOL | |
RATE_NVOL | |
RATE_SLNVOL | |
BASE_CORRELATION | |
SHIFT | |
TRANSITION_PROBABILITY | |
NONE |
Definition at line 126 of file marketdatum.hpp.
MarketDatum | ( | ) |
Definition at line 80 of file marketdatum.hpp.
MarketDatum | ( | Real | value, |
Date | asofDate, | ||
const string & | name, | ||
QuoteType | quoteType, | ||
InstrumentType | instrumentType | ||
) |
Constructor.
Definition at line 145 of file marketdatum.hpp.
|
virtual |
|
virtual |
Make a copy of the market datum.
Reimplemented in MoneyMarketQuote, FRAQuote, ImmFraQuote, SwapQuote, ZeroQuote, DiscountQuote, MMFutureQuote, OIFutureQuote, BasisSwapQuote, BMASwapQuote, CrossCcyBasisSwapQuote, CrossCcyFixFloatSwapQuote, CdsQuote, HazardRateQuote, RecoveryRateQuote, SwaptionQuote, SwaptionShiftQuote, BondOptionQuote, BondOptionShiftQuote, CapFloorQuote, CapFloorShiftQuote, FXSpotQuote, FXForwardQuote, FXOptionQuote, ZcInflationSwapQuote, InflationCapFloorQuote, ZcInflationCapFloorQuote, YoYInflationSwapQuote, YyInflationCapFloorQuote, SeasonalityQuote, EquitySpotQuote, EquityForwardQuote, EquityDividendYieldQuote, EquityOptionQuote, SecuritySpreadQuote, BaseCorrelationQuote, IndexCDSOptionQuote, CommoditySpotQuote, CommodityForwardQuote, CommodityOptionQuote, CorrelationQuote, CPRQuote, and BondPriceQuote.
Definition at line 153 of file marketdatum.hpp.
const string & name | ( | ) | const |
const Handle< Quote > & quote | ( | ) | const |
Definition at line 160 of file marketdatum.hpp.
Date asofDate | ( | ) | const |
InstrumentType instrumentType | ( | ) | const |
Definition at line 162 of file marketdatum.hpp.
QuoteType quoteType | ( | ) | const |
|
private |
Definition at line 314 of file marketdatum.cpp.
|
friend |
Serialization.
Definition at line 174 of file marketdatum.hpp.
|
protected |
Definition at line 166 of file marketdatum.hpp.
|
protected |
Definition at line 167 of file marketdatum.hpp.
|
protected |
Definition at line 168 of file marketdatum.hpp.
|
protected |
Definition at line 169 of file marketdatum.hpp.
|
protected |
Definition at line 170 of file marketdatum.hpp.