Skip to content

without_carry

module jetblack_options.numeric_greeks.without_carry

Summary

Class for calculating numeric greeks for options using finite difference

Description

methods for the style with no carry or dividend yield.

class NumericGreeks


jetblack_options.numeric_greeks.without_carry.NumericGreeks(
price: Callable[[float, float, float, float, float], float]
) -> None

Parameters

price: Callable[[float, float, float, float, float], float]

method NumericGreeks.charm


NumericGreeks.charm(
S: float,
K: float,
T: float,
r: float,
v: float,
*,
dS: float,
dT: float
) -> float

Parameters

S: float
K: float
T: float
r: float
v: float
dS: float (optional)
dT: float (optional)

Returns

float:

method NumericGreeks.delta


NumericGreeks.delta(
S: float,
K: float,
T: float,
r: float,
v: float,
*,
dS: float,
method: Literal['central', 'forward', 'backward']
) -> float

Parameters

S: float
K: float
T: float
r: float
v: float
dS: float (optional)
method: Literal['central', 'forward', 'backward'] (optional)

Returns

float:

method NumericGreeks.deltap


NumericGreeks.deltap(
S: float,
K: float,
T: float,
r: float,
v: float,
*,
dS: float
) -> float

Parameters

S: float
K: float
T: float
r: float
v: float
dS: float (optional)

Returns

float:

method NumericGreeks.dgamma_dvol


NumericGreeks.dgamma_dvol(
S: float,
K: float,
T: float,
r: float,
v: float,
*,
dS: float,
dv: float
) -> float

Parameters

S: float
K: float
T: float
r: float
v: float
dS: float (optional)
dv: float (optional)

Returns

float:

method NumericGreeks.elasticity


NumericGreeks.elasticity(
S: float,
K: float,
T: float,
r: float,
v: float,
*,
dS: float,
method: Literal['central', 'forward', 'backward']
) -> float

Parameters

S: float
K: float
T: float
r: float
v: float
dS: float (optional)
method: Literal['central', 'forward', 'backward'] (optional)

Returns

float:

method NumericGreeks.gamma


NumericGreeks.gamma(
S: float,
K: float,
T: float,
r: float,
v: float,
*,
dS: float,
method: Literal['central', 'forward', 'backward']
) -> float

Parameters

S: float
K: float
T: float
r: float
v: float
dS: float (optional)
method: Literal['central', 'forward', 'backward'] (optional)

Returns

float:

method NumericGreeks.gammap


NumericGreeks.gammap(
S: float,
K: float,
T: float,
r: float,
v: float,
*,
dS: float,
method: Literal['central', 'forward', 'backward']
) -> float

Parameters

S: float
K: float
T: float
r: float
v: float
dS: float (optional)
method: Literal['central', 'forward', 'backward'] (optional)

Returns

float:

method NumericGreeks.rho


NumericGreeks.rho(
S: float,
K: float,
T: float,
r: float,
v: float,
*,
dr: float,
method: Literal['central', 'forward', 'backward']
) -> float

Parameters

S: float
K: float
T: float
r: float
v: float
dr: float (optional)
method: Literal['central', 'forward', 'backward'] (optional)

Returns

float:

method NumericGreeks.speed


NumericGreeks.speed(
S: float,
K: float,
T: float,
r: float,
v: float,
*,
dS: float
) -> float

Parameters

S: float
K: float
T: float
r: float
v: float
dS: float (optional)

Returns

float:

method NumericGreeks.strike_delta


NumericGreeks.strike_delta(
S: float,
K: float,
T: float,
r: float,
v: float,
*,
dX: float
) -> float

Parameters

S: float
K: float
T: float
r: float
v: float
dX: float (optional)

Returns

float:

method NumericGreeks.strike_gamma


NumericGreeks.strike_gamma(
S: float,
K: float,
T: float,
r: float,
v: float,
*,
dX: float
) -> float

Parameters

S: float
K: float
T: float
r: float
v: float
dX: float (optional)

Returns

float:

method NumericGreeks.theta


NumericGreeks.theta(
S: float,
K: float,
T: float,
r: float,
v: float,
*,
dT: float,
method: Literal['central', 'forward', 'backward']
) -> float

Parameters

S: float
K: float
T: float
r: float
v: float
dT: float (optional)
method: Literal['central', 'forward', 'backward'] (optional)

Returns

float:

method NumericGreeks.time_gamma


NumericGreeks.time_gamma(
S: float,
K: float,
T: float,
r: float,
v: float,
*,
dT: float
) -> float

Parameters

S: float
K: float
T: float
r: float
v: float
dT: float (optional)

Returns

float:

method NumericGreeks.vanna


NumericGreeks.vanna(
S: float,
K: float,
T: float,
r: float,
v: float,
*,
dS: float,
dv: float
) -> float

Parameters

S: float
K: float
T: float
r: float
v: float
dS: float (optional)
dv: float (optional)

Returns

float:

method NumericGreeks.vega


NumericGreeks.vega(
S: float,
K: float,
T: float,
r: float,
v: float,
*,
dv: float,
method: Literal['central', 'forward', 'backward']
) -> float

Parameters

S: float
K: float
T: float
r: float
v: float
dv: float (optional)
method: Literal['central', 'forward', 'backward'] (optional)

Returns

float:

method NumericGreeks.vegap


NumericGreeks.vegap(
S: float,
K: float,
T: float,
r: float,
v: float,
*,
dv: float
) -> float

Parameters

S: float
K: float
T: float
r: float
v: float
dv: float (optional)

Returns

float:

method NumericGreeks.vomma


NumericGreeks.vomma(
S: float,
K: float,
T: float,
r: float,
v: float,
*,
dv: float
) -> float

Parameters

S: float
K: float
T: float
r: float
v: float
dv: float (optional)

Returns

float: