Quant::Framework::VolSurface::Delta
Represents a volatility surface, built from market implied volatilities.
my $surface = Quant::Framework::VolSurface::Delta->new({underlying_config => $underlying_config});
Return the surface type
A variance surface. Converted from raw volatility input surface.
The original surface data.
Expects 3 mandatory arguments as input.
1) from - Date::Utility object 2) to - Date::Utility object 3) delta | strike | moneyness.
Calculates volatility from the surface based input parameters.
USAGE:
my $from = Date::Utility->new('2016-06-01 10:00:00'); my $to = Date::Utility->new('2016-06-01 15:00:00'); my $vol = $s->get_volatility({delta => 25, from => $from, to => $to}); my $vol = $s->get_volatility({strike => $bet->barrier, from => $from, to => $to}); my $vol = $s->get_volatility({delta => 50, from => $from, to => $to});
Calculate the requested smile from volatility surface.
Calculate the variance for a given date based on volatility surface data.
Get the weight between to given dates.
Quadratic interpolation to interpolate across smile ->interpolate({smile => $smile, sought_point => $sought_point});
Returns the rr and bf values for a given day
An array reference of that contains expiry dates for smiles on the volatility surface.
To install Quant::Framework, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Quant::Framework
CPAN shell
perl -MCPAN -e shell install Quant::Framework
For more information on module installation, please visit the detailed CPAN module installation guide.