europeanOpt.hpp
Go to the documentation of this file.
friend std::ostream & operator<<(std::ostream &, EuropeanOpt &)
Overloads stream operator.
Definition: europeanOpt.cpp:98
Definition: cadHoliday.cpp:3
CallPut
Enumeration defining option types.
Definition: instrumentAuxiliaryTypes.hpp:16
double payoff(double) const override
Calculates payoff at expiry.
Definition: europeanOpt.cpp:22
double prizeAnalytically(const SmartPointer< MarketModel > &) const override
calculates the price of option using market model provided
Definition: europeanOpt.cpp:90
Date delivery_date_
Date when option is settled.
Definition: europeanOpt.hpp:58
Date getExpiry() const override
returns expiry date
Definition: europeanOpt.cpp:45
std::tuple< Date, Date, double, double, CallPut > getSettings() const
returns the tuple of option's parameters
Definition: europeanOpt.cpp:78
double prizePaths(std::vector< Path >, double) const override
calculates the option value basing on the paths provided by Monte Carlo Pricer
Definition: europeanOpt.cpp:34
File contains definition of financial option interface.
double getStrike() const override
returns strike
Definition: europeanOpt.cpp:58
Date getMaturity() const override
returns maturity date
Definition: europeanOpt.cpp:51
Class is an abstract interface for single asset financial options.
Definition: option.hpp:22
Date expiry_date_
Date of establishing the pay off amount.
Definition: europeanOpt.hpp:57
virtual EuropeanOpt * clone() const override
Virtual copy constructor.
Definition: europeanOpt.cpp:84
Date start_date_
date on which payoff is discounted
Definition: europeanOpt.hpp:56
void serialize(Archive &ar, const unsigned int)
interface used by Boost serialization library
Definition: europeanOpt.hpp:67
CallPut getType() const
returns option type
Definition: europeanOpt.cpp:65
void recordFixing(Date, double) override
Empty method.
Definition: europeanOpt.cpp:71