Basis Swap data class. More...
#include <ored/marketdata/marketdatum.hpp>
Public Member Functions | |
BasisSwapQuote () | |
BasisSwapQuote (Real value, Date asofDate, const string &name, QuoteType quoteType, Period flatTerm, Period term, string ccy="USD", Period maturity=3 *Months) | |
Constructor. More... | |
QuantLib::ext::shared_ptr< MarketDatum > | clone () 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< 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 | |
Period | flatTerm_ |
Period | term_ |
string | ccy_ |
Period | maturity_ |
class | boost::serialization::access |
Serialization. More... | |
const Period & | flatTerm () const |
const Period & | term () const |
const string & | ccy () const |
const Period & | maturity () const |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
Basis Swap data class.
This class holds single market points of type
The quote (in Basis Points) is then interpreted as follows:
A fair Swap pays the reference index with "flat term" with spread zero and receives the reference index with "term" plus the quoted spread.
Definition at line 536 of file marketdatum.hpp.
BasisSwapQuote | ( | ) |
Definition at line 538 of file marketdatum.hpp.
BasisSwapQuote | ( | Real | value, |
Date | asofDate, | ||
const string & | name, | ||
QuoteType | quoteType, | ||
Period | flatTerm, | ||
Period | term, | ||
string | ccy = "USD" , |
||
Period | maturity = 3 * Months |
||
) |
Constructor.
Definition at line 540 of file marketdatum.hpp.
|
overridevirtual |
Make a copy of the market datum.
Reimplemented from MarketDatum.
Definition at line 546 of file marketdatum.hpp.
const Period & flatTerm | ( | ) | const |
Definition at line 552 of file marketdatum.hpp.
const Period & term | ( | ) | const |
Definition at line 553 of file marketdatum.hpp.
const string & ccy | ( | ) | const |
Definition at line 554 of file marketdatum.hpp.
const Period & maturity | ( | ) | const |
Definition at line 555 of file marketdatum.hpp.
|
private |
|
friend |
Serialization.
Definition at line 563 of file marketdatum.hpp.
|
private |
Definition at line 558 of file marketdatum.hpp.
|
private |
Definition at line 559 of file marketdatum.hpp.
|
private |
Definition at line 560 of file marketdatum.hpp.
|
private |
Definition at line 561 of file marketdatum.hpp.