Option Greeks builder. More...

#include <optionGreeksBuilder.hpp>

Public Member Functions

 BuildGreeksReport ()
 Default constructor. More...
 
BuildGreeksReportwithDelta (double h=1e-4, NumDiffScheme scheme=NumDiffScheme::CNTR, std::string risk_name="Delta")
 Adds Delta to option risk report. More...
 
BuildGreeksReportwithGamma (double h=1e-4, NumDiffScheme scheme=NumDiffScheme::CNTR, std::string risk_name="Gamma")
 Adds Gamma to option risk report. More...
 
BuildGreeksReportwithVega (double h=1e-4, NumDiffScheme scheme=NumDiffScheme::CNTR, std::string risk_name="Vega")
 Adds Vega to option risk report. More...
 
BuildGreeksReportwithVanna (double hs=1e-4, double hv=1e-4, std::string risk_name="Vanna")
 Adds Vanna to option risk report. More...
 
BuildGreeksReportwithVolga (double h=1e-4, NumDiffScheme scheme=NumDiffScheme::CNTR, std::string risk_name="Volga")
 Adds Volga to option risk report. More...
 
BuildGreeksReportwithTheta (std::string risk_name="Theta")
 Adds Theta to option risk report. More...
 
SmartPointer< OptionGreeksbuild ()
 Creates Option Greeks risk report. More...
 

Private Attributes

SmartPointer< OptionGreeksgreeks_
 Options greeks risk report. More...
 

Detailed Description

Option Greeks builder.

Class is used to construct option Greeks decorator.

Examples:
optionPricingExample.cpp.

Constructor & Destructor Documentation

julian::BuildGreeksReport::BuildGreeksReport ( )

Default constructor.

Member Function Documentation

SmartPointer< OptionGreeks > julian::BuildGreeksReport::build ( )

Creates Option Greeks risk report.

Examples:
optionPricingExample.cpp.
BuildGreeksReport & julian::BuildGreeksReport::withDelta ( double  h = 1e-4,
NumDiffScheme  scheme = NumDiffScheme::CNTR,
std::string  risk_name = "Delta" 
)

Adds Delta to option risk report.

Parameters
hIncrement used in differencing scheme (1e-4 by default)
schemeScheme used in differencing (Central differencing by default).
risk_nameRisk name that will be used as key for result map. Default name is Delta.
Examples:
optionPricingExample.cpp.
BuildGreeksReport & julian::BuildGreeksReport::withGamma ( double  h = 1e-4,
NumDiffScheme  scheme = NumDiffScheme::CNTR,
std::string  risk_name = "Gamma" 
)

Adds Gamma to option risk report.

Parameters
hIncrement used in differencing scheme (1e-4 by default)
schemeScheme used in differencing (Central differencing by default).
risk_nameRisk name that will be used as key for result map. Default name is Gamma.
Examples:
optionPricingExample.cpp.
BuildGreeksReport & julian::BuildGreeksReport::withTheta ( std::string  risk_name = "Theta")

Adds Theta to option risk report.

Parameters
risk_nameRisk name that will be used as key for result map. Default name is Theta.
Examples:
optionPricingExample.cpp.
BuildGreeksReport & julian::BuildGreeksReport::withVanna ( double  hs = 1e-4,
double  hv = 1e-4,
std::string  risk_name = "Vanna" 
)

Adds Vanna to option risk report.

Parameters
hsIncrement used in differencing scheme for spot direction (1e-4 by default)
hvIncrement used in differencing scheme for volatility direction (1e-4 by default)
risk_nameRisk name that will be used as key for result map. Default name is Volga.
Examples:
optionPricingExample.cpp.
BuildGreeksReport & julian::BuildGreeksReport::withVega ( double  h = 1e-4,
NumDiffScheme  scheme = NumDiffScheme::CNTR,
std::string  risk_name = "Vega" 
)

Adds Vega to option risk report.

Parameters
hIncrement used in differencing scheme (1e-4 by default)
schemeScheme used in differencing (Central differencing by default).
risk_nameRisk name that will be used as key for result map. Default name is Vega.
Examples:
optionPricingExample.cpp.
BuildGreeksReport & julian::BuildGreeksReport::withVolga ( double  h = 1e-4,
NumDiffScheme  scheme = NumDiffScheme::CNTR,
std::string  risk_name = "Volga" 
)

Adds Volga to option risk report.

Parameters
hIncrement used in differencing scheme (1e-4 by default)
schemeScheme used in differencing (Central differencing by default).
risk_nameRisk name that will be used as key for result map. Default name is Volga.
Examples:
optionPricingExample.cpp.

Member Data Documentation

SmartPointer<OptionGreeks> julian::BuildGreeksReport::greeks_
private

Options greeks risk report.


The documentation for this class was generated from the following files:
  • C:/Unix/home/OEM/jULIAN/src/pricingEngines/optionGreeks/optionGreeksBuilder.hpp
  • C:/Unix/home/OEM/jULIAN/src/pricingEngines/optionGreeks/optionGreeksBuilder.cpp