Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
Public Member Functions | List of all members
MMFutureQuote Class Reference

Money Market Future data class. More...

#include <ored/marketdata/marketdatum.hpp>

+ Inheritance diagram for MMFutureQuote:
+ Collaboration diagram for MMFutureQuote:

Public Member Functions

 MMFutureQuote ()
 
 MMFutureQuote (Real value, Date asofDate, const string &name, QuoteType quoteType, string ccy, string expiry, string contract="", Period tenor=3 *Months)
 Constructor. More...
 
QuantLib::ext::shared_ptr< MarketDatumclone () override
 Make a copy of the market datum. More...
 
- Public Member Functions inherited from MarketDatum
 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< MarketDatumclone ()
 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

string ccy_
 
string expiry_
 
string contract_
 
Period tenor_
 
class boost::serialization::access
 Serialization. More...
 
const string & ccy () const
 
const string & expiry () const
 
Natural expiryYear () const
 
Month expiryMonth () const
 
const string & contract () const
 
const Period & tenor () const
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Additional Inherited Members

- Public Types inherited from MarketDatum
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...
 
- Protected Attributes inherited from MarketDatum
Handle< Quote > quote_
 
Date asofDate_
 
string name_
 
InstrumentType instrumentType_
 
QuoteType quoteType_
 

Detailed Description

Money Market Future data class.

This class holds single market points of type - MM_FUTURE. Specific data comprise currency, expiry, contract and future tenor.

Warning:
expiry parameter is expected in the format YYYY-MM e.g. 2013-06 for Jun 2013, 1998-05 for May 1998, etc.

Definition at line 444 of file marketdatum.hpp.

Constructor & Destructor Documentation

◆ MMFutureQuote() [1/2]

Definition at line 446 of file marketdatum.hpp.

446{}

◆ MMFutureQuote() [2/2]

MMFutureQuote ( Real  value,
Date  asofDate,
const string &  name,
QuoteType  quoteType,
string  ccy,
string  expiry,
string  contract = "",
Period  tenor = 3 * Months 
)

Member Function Documentation

◆ clone()

QuantLib::ext::shared_ptr< MarketDatum > clone ( )
overridevirtual

Make a copy of the market datum.

Reimplemented from MarketDatum.

Definition at line 454 of file marketdatum.hpp.

454 {
455 return QuantLib::ext::make_shared<MMFutureQuote>(quote_->value(), asofDate_, name_, quoteType_, ccy_, expiry_, contract_, tenor_);
456 }
Handle< Quote > quote_

◆ ccy()

const string & ccy ( ) const

Definition at line 460 of file marketdatum.hpp.

460{ return ccy_; }

◆ expiry()

const string & expiry ( ) const

Definition at line 461 of file marketdatum.hpp.

461{ return expiry_; }

◆ expiryYear()

Natural expiryYear ( ) const

Definition at line 254 of file marketdatum.cpp.

254{ return yearFromExpiryString(expiry_); }

◆ expiryMonth()

Month expiryMonth ( ) const

Definition at line 256 of file marketdatum.cpp.

256{ return monthFromExpiryString(expiry_); }

◆ contract()

const string & contract ( ) const

Definition at line 464 of file marketdatum.hpp.

464{ return contract_; }

◆ tenor()

const Period & tenor ( ) const

Definition at line 465 of file marketdatum.hpp.

465{ return tenor_; }

◆ serialize()

template void serialize ( Archive &  ar,
const unsigned int  version 
)
private

Definition at line 378 of file marketdatum.cpp.

378 {
379 ar& boost::serialization::base_object<MarketDatum>(*this);
380 ar& ccy_;
381 ar& expiry_;
382 ar& contract_;
383 ar& tenor_;
384}

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Serialization.

Definition at line 474 of file marketdatum.hpp.

Member Data Documentation

◆ ccy_

string ccy_
private

Definition at line 469 of file marketdatum.hpp.

◆ expiry_

string expiry_
private

Definition at line 470 of file marketdatum.hpp.

◆ contract_

string contract_
private

Definition at line 471 of file marketdatum.hpp.

◆ tenor_

Period tenor_
private

Definition at line 472 of file marketdatum.hpp.