optionGreeksBuilder.hpp
Go to the documentation of this file.
1 #ifndef JULIAN_OPTIONGREEKSBUILDER_HPP
2 #define JULIAN_OPTIONGREEKSBUILDER_HPP
3 
6 
7 
8 namespace julian {
20  public:
22 
23  BuildGreeksReport& withDelta(double h = 1e-4,
25  std::string risk_name = "Delta");
26 
27  BuildGreeksReport& withGamma(double h = 1e-4,
29  std::string risk_name = "Gamma");
30 
31  BuildGreeksReport& withVega(double h = 1e-4,
33  std::string risk_name = "Vega");
34 
35  BuildGreeksReport& withVanna(double hs = 1e-4, double hv = 1e-4,
36  std::string risk_name = "Vanna");
37 
38  BuildGreeksReport& withVolga(double h = 1e-4,
40  std::string risk_name = "Volga");
41 
42  BuildGreeksReport& withTheta(std::string risk_name = "Theta");
43 
45 
47  private:
49  };
50 
51 
52 } // namespace julian
53 
54 #endif /* JULIAN_OPTIONGREEKSBUILDER_HPP */
55 
Definition: cadHoliday.cpp:3
Option Greeks builder.
Definition: optionGreeksBuilder.hpp:19
BuildGreeksReport & withDelta(double h=1e-4, NumDiffScheme scheme=NumDiffScheme::CNTR, std::string risk_name="Delta")
Adds Delta to option risk report.
Definition: optionGreeksBuilder.cpp:26
Template of deep-coping smart pointer.
Definition: smartPointer.hpp:14
BuildGreeksReport()
Default constructor.
Definition: optionGreeksBuilder.cpp:14
Interface of option's Greeks structure.
SmartPointer< OptionGreeks > greeks_
Options greeks risk report.
Definition: optionGreeksBuilder.hpp:46
File contains small mathematical classes and functions.
BuildGreeksReport & withVega(double h=1e-4, NumDiffScheme scheme=NumDiffScheme::CNTR, std::string risk_name="Vega")
Adds Vega to option risk report.
Definition: optionGreeksBuilder.cpp:54
BuildGreeksReport & withTheta(std::string risk_name="Theta")
Adds Theta to option risk report.
Definition: optionGreeksBuilder.cpp:93
BuildGreeksReport & withVolga(double h=1e-4, NumDiffScheme scheme=NumDiffScheme::CNTR, std::string risk_name="Volga")
Adds Volga to option risk report.
Definition: optionGreeksBuilder.cpp:81
BuildGreeksReport & withVanna(double hs=1e-4, double hv=1e-4, std::string risk_name="Vanna")
Adds Vanna to option risk report.
Definition: optionGreeksBuilder.cpp:68
BuildGreeksReport & withGamma(double h=1e-4, NumDiffScheme scheme=NumDiffScheme::CNTR, std::string risk_name="Gamma")
Adds Gamma to option risk report.
Definition: optionGreeksBuilder.cpp:40
SmartPointer< OptionGreeks > build()
Creates Option Greeks risk report.
Definition: optionGreeksBuilder.cpp:100
NumDiffScheme
collection of enumerations, simple classes and small functions used in mathematical computations ...
Definition: mathUtils.hpp:16