closedform
cfblackscholes
Closed-Form pricing formulas for the Black-Scholes model
- class CFBlackScholes(bs_model: BlackScholesModel)[source]
Bases:
objectSome Closed-form formulas for the Black-Scholes model
- eps = 1e-08
- __init__(bs_model: BlackScholesModel)[source]
- Parameters
bs_model – the Black-Scholes model object
- forward(strike, maturity)[source]
Price a forward in the Black-Scholes model
- Parameters
strike – strike of the forward contract
maturity – maturity of the forward contract
- Returns:
The value of the forward contract
- call(strike: float, maturity: float)[source]
Price a Call option in the Black-Scholes model
- Parameters
strike – call strike
maturity – call maturity
- put(strike: float, maturity: float)[source]
Price a Put option in the Black-Scholes model
- Parameters
strike – put strike
maturity – put maturity
cflevycopula
Closed-Form pricing formula for Lévy copula models
Note
The Garreau-Kercheval paper is explained in their paper: ‘A Structural Jump Threshold Framework for Credit Risk’
- class CFLevyCopulaModel(levy_copula_model: LevyCopulaModel)[source]
Bases:
object- __init__(levy_copula_model: LevyCopulaModel)[source]
- survival_probability(levels_a: list[float], t: float)[source]
Pricing a survival probability in the Garreau-Kercheval framework
- Parameters
levels_a – thresholds a
t – time t
cflevymodel
Closed-Form pricing formulas for Lévy models
Note
The Garreau-Kercheval paper is explained in their paper: ‘A Structural Jump Threshold Framework for Credit Risk’
- class CFLevyModel(model: LevyModel)[source]
Bases:
object- survival_probability(level_a: float, t: float)[source]
Pricing a survival probability in the Garreau-Kercheval framework
- Parameters
level_a – threshold a
t – time t
cfvariancegamma
Closed-Formula for the Variance-Gamma model
- class CFVarianceGammaModel(vg_model: VarianceGammaModel)[source]
Bases:
object- __init__(vg_model: VarianceGammaModel)[source]