Serializable object holding option data. More...
#include <ored/portfolio/optiondata.hpp>
Public Member Functions | |
OptionData () | |
Default constructor. More... | |
OptionData (string longShort, string callPut, string style, bool payoffAtExpiry, vector< string > exerciseDates, string settlement="Cash", string settlementMethod="", const PremiumData &premiumData={}, vector< double > exerciseFees=vector< Real >(), vector< double > exercisePrices=vector< Real >(), string noticePeriod="", string noticeCalendar="", string noticeConvention="", const vector< string > &exerciseFeeDates=vector< string >(), const vector< string > &exerciseFeeTypes=vector< string >(), string exerciseFeeSettlementPeriod="", string exerciseFeeSettlementCalendar="", string exerciseFeeSettlementConvention="", string payoffType="", string payoffType2="", const boost::optional< bool > &automaticExercise=boost::none, const boost::optional< OptionExerciseData > &exerciseData=boost::none, const boost::optional< OptionPaymentData > &paymentData=boost::none) | |
Constructor. More... | |
Inspectors | |
const string & | longShort () const |
const string & | callPut () const |
const string & | payoffType () const |
const string & | payoffType2 () const |
const string & | style () const |
const bool & | payoffAtExpiry () const |
const vector< string > & | exerciseDates () const |
const ScheduleData & | exerciseDatesSchedule () const |
const string & | noticePeriod () const |
const string & | noticeCalendar () const |
const string & | noticeConvention () const |
const string & | settlement () const |
const string & | settlementMethod () const |
const PremiumData & | premiumData () const |
const vector< double > & | exerciseFees () const |
const vector< string > & | exerciseFeeDates () const |
const vector< string > & | exerciseFeeTypes () const |
const string & | exerciseFeeSettlementPeriod () const |
const string & | exerciseFeeSettlementCalendar () const |
const string & | exerciseFeeSettlementConvention () const |
const vector< double > & | exercisePrices () const |
boost::optional< bool > | automaticExercise () const |
const boost::optional< OptionExerciseData > & | exerciseData () const |
const boost::optional< OptionPaymentData > & | paymentData () const |
Setters | |
void | setExerciseDates (const std::vector< std::string > &exerciseDates) |
void | setExerciseDates (const ScheduleData &exerciseDatesSchedule) |
void | setAutomaticExercise (bool automaticExercise) |
void | setPaymentData (const OptionPaymentData &paymentData) |
void | setCallPut (const string &callPut) |
void | setLongShort (const std::string &longShort) |
void | setStyle (const std::string &style) |
void | setPayoffAtExpiry (const bool payoffAtExpiry) |
void | setNoticePeriod (const std::string ¬icePeriod) |
void | setSettlement (const std::string &settlement) |
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 | longShort_ |
string | callPut_ |
string | payoffType_ |
string | payoffType2_ |
string | style_ |
bool | payoffAtExpiry_ |
ScheduleData | exerciseDatesSchedule_ |
vector< string > | exerciseDates_ |
string | noticePeriod_ |
string | noticeCalendar_ |
string | noticeConvention_ |
string | settlement_ |
string | settlementMethod_ |
PremiumData | premiumData_ |
vector< double > | exerciseFees_ |
vector< string > | exerciseFeeDates_ |
vector< string > | exerciseFeeTypes_ |
string | exerciseFeeSettlementPeriod_ |
string | exerciseFeeSettlementCalendar_ |
string | exerciseFeeSettlementConvention_ |
vector< double > | exercisePrices_ |
boost::optional< bool > | automaticExercise_ |
boost::optional< OptionExerciseData > | exerciseData_ |
boost::optional< OptionPaymentData > | paymentData_ |
virtual void | fromXML (XMLNode *node) override |
virtual XMLNode * | toXML (XMLDocument &doc) const override |
bool | isAutomaticExercise () const |
Automatic exercise assumed false if not explicitly provided. More... | |
Serializable object holding option data.
Definition at line 42 of file optiondata.hpp.
OptionData | ( | ) |
Default constructor.
Definition at line 45 of file optiondata.hpp.
OptionData | ( | string | longShort, |
string | callPut, | ||
string | style, | ||
bool | payoffAtExpiry, | ||
vector< string > | exerciseDates, | ||
string | settlement = "Cash" , |
||
string | settlementMethod = "" , |
||
const PremiumData & | premiumData = {} , |
||
vector< double > | exerciseFees = vector<Real>() , |
||
vector< double > | exercisePrices = vector<Real>() , |
||
string | noticePeriod = "" , |
||
string | noticeCalendar = "" , |
||
string | noticeConvention = "" , |
||
const vector< string > & | exerciseFeeDates = vector<string>() , |
||
const vector< string > & | exerciseFeeTypes = vector<string>() , |
||
string | exerciseFeeSettlementPeriod = "" , |
||
string | exerciseFeeSettlementCalendar = "" , |
||
string | exerciseFeeSettlementConvention = "" , |
||
string | payoffType = "" , |
||
string | payoffType2 = "" , |
||
const boost::optional< bool > & | automaticExercise = boost::none , |
||
const boost::optional< OptionExerciseData > & | exerciseData = boost::none , |
||
const boost::optional< OptionPaymentData > & | paymentData = boost::none |
||
) |
Constructor.
Definition at line 47 of file optiondata.hpp.
const string & longShort | ( | ) | const |
const string & callPut | ( | ) | const |
const string & payoffType | ( | ) | const |
const string & payoffType2 | ( | ) | const |
const string & style | ( | ) | const |
const bool & payoffAtExpiry | ( | ) | const |
const vector< string > & exerciseDates | ( | ) | const |
const ScheduleData & exerciseDatesSchedule | ( | ) | const |
Definition at line 77 of file optiondata.hpp.
const string & noticePeriod | ( | ) | const |
const string & noticeCalendar | ( | ) | const |
const string & noticeConvention | ( | ) | const |
const string & settlement | ( | ) | const |
const string & settlementMethod | ( | ) | const |
const PremiumData & premiumData | ( | ) | const |
const vector< double > & exerciseFees | ( | ) | const |
const vector< string > & exerciseFeeDates | ( | ) | const |
const vector< string > & exerciseFeeTypes | ( | ) | const |
const string & exerciseFeeSettlementPeriod | ( | ) | const |
const string & exerciseFeeSettlementCalendar | ( | ) | const |
const string & exerciseFeeSettlementConvention | ( | ) | const |
const vector< double > & exercisePrices | ( | ) | const |
Definition at line 90 of file optiondata.hpp.
boost::optional< bool > automaticExercise | ( | ) | const |
const boost::optional< OptionExerciseData > & exerciseData | ( | ) | const |
const boost::optional< OptionPaymentData > & paymentData | ( | ) | const |
void setExerciseDates | ( | const std::vector< std::string > & | exerciseDates | ) |
void setExerciseDates | ( | const ScheduleData & | exerciseDatesSchedule | ) |
Definition at line 99 of file optiondata.hpp.
void setAutomaticExercise | ( | bool | automaticExercise | ) |
Definition at line 100 of file optiondata.hpp.
void setPaymentData | ( | const OptionPaymentData & | paymentData | ) |
void setCallPut | ( | const string & | callPut | ) |
Definition at line 102 of file optiondata.hpp.
void setLongShort | ( | const std::string & | longShort | ) |
void setStyle | ( | const std::string & | style | ) |
void setPayoffAtExpiry | ( | const bool | payoffAtExpiry | ) |
void setNoticePeriod | ( | const std::string & | noticePeriod | ) |
void setSettlement | ( | const std::string & | settlement | ) |
|
overridevirtual |
Implements XMLSerializable.
Definition at line 32 of file optiondata.cpp.
|
overridevirtual |
Implements XMLSerializable.
Definition at line 86 of file optiondata.cpp.
bool isAutomaticExercise | ( | ) | const |
Automatic exercise assumed false if not explicitly provided.
Definition at line 117 of file optiondata.hpp.
|
private |
Definition at line 120 of file optiondata.hpp.
|
private |
Definition at line 121 of file optiondata.hpp.
|
private |
Definition at line 122 of file optiondata.hpp.
|
private |
Definition at line 123 of file optiondata.hpp.
|
private |
Definition at line 124 of file optiondata.hpp.
|
private |
Definition at line 125 of file optiondata.hpp.
|
private |
Definition at line 126 of file optiondata.hpp.
|
private |
Definition at line 127 of file optiondata.hpp.
|
private |
Definition at line 128 of file optiondata.hpp.
|
private |
Definition at line 129 of file optiondata.hpp.
|
private |
Definition at line 130 of file optiondata.hpp.
|
private |
Definition at line 131 of file optiondata.hpp.
|
private |
Definition at line 132 of file optiondata.hpp.
|
private |
Definition at line 133 of file optiondata.hpp.
|
private |
Definition at line 134 of file optiondata.hpp.
|
private |
Definition at line 135 of file optiondata.hpp.
|
private |
Definition at line 136 of file optiondata.hpp.
|
private |
Definition at line 137 of file optiondata.hpp.
|
private |
Definition at line 138 of file optiondata.hpp.
|
private |
Definition at line 139 of file optiondata.hpp.
|
private |
Definition at line 140 of file optiondata.hpp.
|
private |
Definition at line 141 of file optiondata.hpp.
|
private |
Definition at line 142 of file optiondata.hpp.
|
private |
Definition at line 143 of file optiondata.hpp.