Class implements Plain Vanilla European Option.
More...
#include <europeanOpt.hpp>
|
| | EuropeanOpt () |
| | default constructor More...
|
| |
| | EuropeanOpt (Date trade_date, Date start_date, Date expiry_date, Date delivery_date, double notional, double strike, CallPut icp) |
| | Constructor. More...
|
| |
| double | prizeAnalytically (const SmartPointer< MarketModel > &) const override |
| | calculates the price of option using market model provided More...
|
| |
| double | prizePaths (std::vector< Path >, double) const override |
| | calculates the option value basing on the paths provided by Monte Carlo Pricer More...
|
| |
| Date | getExpiry () const override |
| | returns expiry date More...
|
| |
| Date | getMaturity () const override |
| | returns maturity date More...
|
| |
| double | getStrike () const override |
| | returns strike More...
|
| |
| void | recordFixing (Date, double) override |
| | Empty method. More...
|
| |
| CallPut | getType () const |
| | returns option type More...
|
| |
| double | payoff (double) const override |
| | Calculates payoff at expiry. More...
|
| |
| std::tuple< Date, Date, double, double, CallPut > | getSettings () const |
| | returns the tuple of option's parameters More...
|
| |
| virtual EuropeanOpt * | clone () const override |
| | Virtual copy constructor. More...
|
| |
| virtual | ~EuropeanOpt () |
| | destructor More...
|
| |
| virtual | ~Option () |
| | destructor More...
|
| |
|
| template<class Archive > |
| void | serialize (Archive &ar, const unsigned int) |
| | interface used by Boost serialization library More...
|
| |
Class implements Plain Vanilla European Option.
Plain European Option can be only exercise at expiry date.
Pay-off:
- In case of Call
- In case of Put
- Examples:
- optionPricingExample.cpp.
| julian::EuropeanOpt::EuropeanOpt |
( |
| ) |
|
|
inline |
| julian::EuropeanOpt::EuropeanOpt |
( |
Date |
trade_date, |
|
|
Date |
start_date, |
|
|
Date |
expiry_date, |
|
|
Date |
delivery_date, |
|
|
double |
notional, |
|
|
double |
strike, |
|
|
CallPut |
icp |
|
) |
| |
| virtual julian::EuropeanOpt::~EuropeanOpt |
( |
| ) |
|
|
inlinevirtual |
| Date julian::EuropeanOpt::getExpiry |
( |
| ) |
const |
|
overridevirtual |
| Date julian::EuropeanOpt::getMaturity |
( |
| ) |
const |
|
overridevirtual |
| std::tuple< Date, Date, double, double, CallPut > julian::EuropeanOpt::getSettings |
( |
| ) |
const |
returns the tuple of option's parameters
Method is used by analytical prizing engine
| double julian::EuropeanOpt::getStrike |
( |
| ) |
const |
|
overridevirtual |
| CallPut julian::EuropeanOpt::getType |
( |
| ) |
const |
| double julian::EuropeanOpt::payoff |
( |
double |
S | ) |
const |
|
overridevirtual |
Calculates payoff at expiry.
Pay-off:
- In case of Call
- In case of Call
Implements julian::Option.
calculates the price of option using market model provided
Implements julian::Option.
| double julian::EuropeanOpt::prizePaths |
( |
std::vector< Path > |
paths, |
|
|
double |
df |
|
) |
| const |
|
overridevirtual |
calculates the option value basing on the paths provided by Monte Carlo Pricer
Implements julian::Option.
| void julian::EuropeanOpt::recordFixing |
( |
Date |
, |
|
|
double |
|
|
) |
| |
|
overridevirtual |
template<class Archive >
| void julian::EuropeanOpt::serialize |
( |
Archive & |
ar, |
|
|
const unsigned |
int |
|
) |
| |
|
inlineprivate |
interface used by Boost serialization library
| std::ostream& operator<< |
( |
std::ostream & |
s, |
|
|
EuropeanOpt & |
opt |
|
) |
| |
|
friend |
Overloads stream operator.
This overloaded operator enables to print the curve on the console.
| Date julian::EuropeanOpt::delivery_date_ |
|
private |
Date when option is settled.
| Date julian::EuropeanOpt::expiry_date_ |
|
private |
Date of establishing the pay off amount.
| double julian::EuropeanOpt::notional_ |
|
private |
| Date julian::EuropeanOpt::start_date_ |
|
private |
date on which payoff is discounted
| double julian::EuropeanOpt::strike_ |
|
private |
| Date julian::EuropeanOpt::trade_date_ |
|
private |
The documentation for this class was generated from the following files:
- C:/Unix/home/OEM/jULIAN/src/instruments/options/europeanOpt.hpp
- C:/Unix/home/OEM/jULIAN/src/instruments/options/europeanOpt.cpp