Equity Option Position instrument wrapper.
More...
#include <ored/portfolio/equityoptionposition.hpp>
|
| EquityOptionPositionInstrumentWrapper (const Real quantity, const std::vector< QuantLib::ext::shared_ptr< QuantLib::VanillaOption > > &options, const std::vector< Real > &positions, const std::vector< Real > &weights, const std::vector< Handle< Quote > > &fxConversion={}) |
|
void | setNpvCurrencyConversion (const Handle< Quote > &npvCcyConversion) |
|
Equity Option Position instrument wrapper.
Definition at line 122 of file equityoptionposition.hpp.
◆ EquityOptionPositionInstrumentWrapper()
EquityOptionPositionInstrumentWrapper |
( |
const Real |
quantity, |
|
|
const std::vector< QuantLib::ext::shared_ptr< QuantLib::VanillaOption > > & |
options, |
|
|
const std::vector< Real > & |
positions, |
|
|
const std::vector< Real > & |
weights, |
|
|
const std::vector< Handle< Quote > > & |
fxConversion = {} |
|
) |
| |
Definition at line 203 of file equityoptionposition.cpp.
207 QL_REQUIRE(
options_.size() ==
weights_.size(),
"EquityOptionPositionInstrumentWrapper: options size ("
208 <<
options_.size() <<
") must match weights size ("
211 "EquityPositionInstrumentWrapper: fxConversion size ("
213 for (auto const& o : options)
214 registerWith(o);
215 for (auto const& fx : fxConversion)
216 registerWith(fx);
217}
std::vector< QuantLib::ext::shared_ptr< QuantLib::VanillaOption > > options_
std::vector< Real > positions_
std::vector< Handle< Quote > > fxConversion_
std::vector< Real > weights_
◆ setNpvCurrencyConversion()
void setNpvCurrencyConversion |
( |
const Handle< Quote > & |
npvCcyConversion | ) |
|
◆ isExpired()
◆ setupArguments()
Definition at line 233 of file equityoptionposition.cpp.
233 {
234 EquityOptionPositionInstrumentWrapper::arguments* a =
235 dynamic_cast<EquityOptionPositionInstrumentWrapper::arguments*>(args);
236 QL_REQUIRE(a != nullptr, "wrong argument type in EquityOptionPositionInstrumentWrapper");
243}
◆ fetchResults()
void fetchResults |
( |
const QuantLib::PricingEngine::results * |
r | ) |
const |
|
override |
◆ quantity_
◆ options_
std::vector<QuantLib::ext::shared_ptr<QuantLib::VanillaOption> > options_ |
|
private |
◆ weights_
std::vector<Real> weights_ |
|
private |
◆ positions_
std::vector<Real> positions_ |
|
private |
◆ fxConversion_
std::vector<Handle<Quote> > fxConversion_ |
|
private |
◆ npvCcyConversion_
Handle<Quote> npvCcyConversion_ |
|
private |