stochvolmodels
Author: Artur Sepp / First recorded: 2022-08-03
Implemented in stochvolmodels. Software citation: CITATION.cff.
Fourier-transform pricing, Monte Carlo validation, and calibration of European options under stochastic-volatility models in Python
The stable workflows cover European vanilla and related variance analytics under Heston and the Karasinski-Sepp log-normal stochastic-volatility model; experimental research modules are labelled separately rather than presented as stable derivatives infrastructure.
For finite-difference pricing, the provisional stochvolmodels.pde_solvers module provides
PDE1DSolver and PDE2DADISolver. The opt-in LogSvPdePricer prices chains of European
calls and puts under the money-market measure.
Solver guide ·
LogSV PDE pricing ·
API reference
Install: pip install stochvolmodels · Import: stochvolmodels · Status: Stable
Paper: Sepp, A. and Rakhmonov, P. (2023), Log-normal stochastic volatility model with quadratic drift, International Journal of Theoretical and Applied Finance, 26(8). See Statement of need for the six papers the repository reproduces and Citation for the full BibTeX list.
Documentation: stochvolmodels.readthedocs.io · offline quickstart · LogSV quickstart in Colab · JOSS paper draft
Why stochvolmodels
stochvolmodels is the reference implementation of the Karasinski-Sepp log-normal stochastic
volatility model, maintained by one of the model's originators, with the Heston model implemented
alongside as a benchmark. The design goal is a single generic interface for a stochastic
volatility model — a closed-form moment generating function for Fourier-transform pricing on one
side, Monte Carlo dynamics on the other — so that analytic prices, simulated prices, and
calibrated implied volatilities are directly comparable model to model.
Key differentiators
Researchers and quantitative practitioners need more than a standalone pricing formula when they evaluate a stochastic-volatility specification: market quotes must share explicit forward, discount, option-type, and maturity conventions; calibration must fail visibly when constraints are not satisfied; and analytic prices need an independent simulation route. General derivatives libraries provide much broader instrument infrastructure, while model collections provide many formulas. This package deliberately serves the narrower workflow around the quadratic-drift LogSV model, with Heston as a like-for-like benchmark and paper implementations tied to the same code.
- A common pricing interface.
ModelPricerrequiresprice_chainand supplies single-option, slice and implied-volatility helpers. LogSV and Heston implement both transform and Monte Carlo pricing, plus constrained calibration. Other models expose their supported capabilities; an unavailable simulation or calibration method raisesNotImplementedError. See the model and pricer boundaries. - Calibration that fails visibly. Validated LogSV and Heston calibration reports
optimizer failures through
CalibrationError; LogSV'sConstraintsTypeselects the martingale conditions. - One lightweight
OptionChain. Bundled simulated chains, normalised OCA panels, and local CBOE, ThetaData and Tardis caches all converge to the same container, so fitting and pricing code does not depend on the original provider. - Diagnostics in declared quote units. Fit residuals support scalar or per-quote spread floors. Native quote diagnostics retain tick-size, price-bound and missing-data evidence, separately from any caller-defined acceptance policy. Research helpers provide synthetic challenge cases and saved-study verification in a source checkout.
- Paper implementations tied to the same code. The
papers/directory reproduces the computations and figures of six papers with the package's own pricers.
For reusable model dynamics, the provisional
HestonModel adapter supplies named path states and joint transforms
without a quote chain. HestonPricer remains the stable pricing/calibration entry point;
products and valuation
own payoffs and discounting.
When to use it — and when not
Use stochvolmodels for European vanilla pricing and implied-volatility analytics under stochastic volatility, for model calibration to option chains (a calibration example to Bitcoin options data is included), and for replicating the papers listed under Statement of need.
For deterministic local volatility, the provisional fitting and pricing APIs support
Dupire inversion and European vanilla PDE prices.
American options and general term-structure modelling are outside the package scope. Black-Scholes-Merton and absolute-normal Bachelier analytics are
provided by the required
vanilla-option-pricers package and
re-exported from stochvolmodels; for strategy backtesting and reporting, use
qis.
Installation
Install using
python -m pip install stochvolmodels
Upgrade using
pip install --upgrade stochvolmodels
Clone using
git clone https://github.com/ArturSepp/StochVolModels.git
Core dependencies:
python >= 3.11.5vanilla-option-pricers >= 2.1.0numba >= 0.60.0numpy >= 2.0scipy >= 1.12.0pandas >= 2.2.0matplotlib >= 3.8.0seaborn >= 0.13.0
Version 2.20.0 requires Python 3.11.5 or newer. Versions 2.6.0 through 2.18.7 required Python 3.11 or newer. Python 3.12 is the development and primary CI interpreter. Published version 2.5.0 retains its original Python 3.10 requirement.
Optional extras:
| Extra | Installs | Needed for |
|---|---|---|
research |
mpmath >= 1.3.0, qis >= 5.11.0, option-chain-analytics[cboe] >= 6.0.0 |
option-chain calibration, local Parquet data, and scripts in papers/ |
visualization |
plotly >= 5.0.0 |
interactive figures |
numerical |
scikit-learn >= 1.3.0, statsmodels >= 0.14.2 |
statistical fits |
jupyter |
jupyter, notebook, jupyterlab, ipykernel, ipywidgets |
notebooks |
Install an extra using
python -m pip install "stochvolmodels[research]"
The library itself imports none of these: import stochvolmodels needs the core dependencies only.
Pinned contributor lint and audit tools live in PEP 735 groups and are installed with uv; see
Testing.
Paper workflows and cached-data examples read two machine-local roots from the ignored
src/stochvolmodels/settings.yaml (copy settings.yaml.example and set RESOURCE_PATH and
OUTPUT_PATH); stochvolmodels.local_path returns them as absolute strings with a trailing
separator, following the qis convention. The local YAML is not included in Git or package
distributions; PyYAML is loaded only when it exists.
Table of contents
- Why stochvolmodels
- Installation
- Statement of need
- Overview
- Five-minute quickstart
- Examples
- Testing
- Changelog
- Feedback & contributing
- Acknowledgments
- Citation
- Ecosystem
- License
- Disclaimer
Statement of need
A stochastic-volatility specification is only evaluated when its analytic prices, its simulated
prices and its calibrated implied volatilities can be put side by side on quotes with explicit
conventions. stochvolmodels provides that workflow for the quadratic-drift log-normal SV model
and the Heston benchmark, and the same analytics power the research: the repository's papers/
directory reproduces the computations and figures of the papers below, from the quadratic-drift
log-normal SV model to cryptocurrency inverse options, robust stochastic volatility modelling,
impermanent-loss hedging in DeFi, stochastic volatility for the factor HJM framework and jump
risk premia under clustered jumps.
| Paper | Implemented analytics | Where |
|---|---|---|
| Sepp, A. and Rakhmonov, P. (2023), Log-normal Stochastic Volatility Model with Quadratic Drift, IJTAF 26(8) | The LogSV model: moment-generating-function Fourier pricing, Monte Carlo dynamics, martingale constraints and calibration; the paper figures and equation-mapped analysis | pricers/logsv_pricer.py, papers/logsv_model_with_quadratic_drift_ijtaf_2023, LogSV model |
| Sepp, A. and Rakhmonov, P. (2023), What is a robust stochastic volatility model (SSRN revision 29 February 2024), SSRN 4647027 | Recorded model comparisons and original 2023 scripts. The local revision of 17 November 2026 uses licensed and private inputs | original SSRN scripts, robust volatility models |
| Lucic, V. and Sepp, A. (2024), Valuation and Hedging of Cryptocurrency Inverse Options, Quantitative Finance 24(7), 851–869 | Inverse-option valuation and hedging, with the Bitcoin chain calibration | papers/inverse_options_qf_2023, inverse options, Bitcoin options |
| Lipton, A., Lucic, V. and Sepp, A. (2025), Unified approach for hedging impermanent loss of liquidity provision, Digital Finance 7, 429-477 | Impermanent-loss hedging analytics | papers/unified_approach_for_hedging_il_df_2025, impermanent-loss hedging |
| Sepp, A. and Rakhmonov, P. (2025), Stochastic Volatility for Factor Heath-Jarrow-Morton Framework, Review of Derivatives Research 28, article 12 (preprint SSRN 4646925) | Factor HJM stochastic-volatility pricing (experimental research surface) | papers/sv_for_factor_hjm_rdr_2025, factor HJM |
| Liu, F., Packham, N. and Sepp, A., Jump risk premia in the presence of clustered jumps, accepted in SIAM Journal on Financial Mathematics (preprint) | Bivariate Hawkes option valuation and related estimation and calibration | Author manuscript, replication scope, Hawkes model |
| Lipton, A. and Sepp, A. (2022), Toward an efficient hybrid method for pricing barrier options on assets with stochastic volatility, Wilmott | Conditional heat-potential and Monte Carlo comparisons on generated paths | Figure runner and author-source inventory |
| Sepp, A. and Rakhmonov, P., Rough Log-normal Stochastic Volatility with Quadratic Drift, local working draft, 18 November 2026 | Selected saved-fit replay on 45 BTC and 39 ETH quotes at H = 0.30 and 0.50. Requires local quotes and checkpoints | Replay instructions and evidence limits |
The replication index records the data each study needs. The GMM risk-premia study and its SPX panels are local. The GMM pricer provides an offline example of the underlying pricing law. Gaussian-mixture pricer
Overview
StochVolModels/
├── src/
│ └── stochvolmodels/
│ ├── data/ # option-chain containers and sample data
│ ├── fitters/ # approximate LogSV smile fitter and Student-t utilities
│ ├── pricers/ # analytic, transform, and Monte Carlo models
│ ├── utils/ # quadrature, payoff, plotting, and rate helpers
│ └── tests/ # shipped pytest suite and regression data
├── examples/ # repository-only runnable workflows
│ ├── getting_started/
│ ├── docs/
│ ├── pricers/
│ ├── fitters/
│ ├── models/
│ ├── estimation/
│ └── data/
├── papers/ # paper replications and labelled development code
├── docs/ # documentation sources and figures
└── README.md
The model interface is src/stochvolmodels/pricers/model_pricer.py. ModelPricer separates
what a model must supply from what every model inherits: to add a model engine, subclass
ModelPricer, define the model's ModelParams dataclass, and implement price_chain (analytic
pricing of an OptionChain, typically a wrapper over a Numba-compiled moment-generating-function
transform), model_mc_price_chain with simulate_vol_paths and simulate_terminal_values, and
calibrate_model_params_to_chain (reporting failures through CalibrationError). Single-option
and slice pricing (price_vanilla, price_slice), model implied vols from chain prices
(compute_chain_prices_with_vols), Monte Carlo implied vols with confidence bounds
(compute_mc_chain_implied_vols) and the visualisation layer (plot_model_ivols,
plot_model_ivols_vs_bid_ask, plot_model_ivols_vs_mc) are inherited. LogSVPricer and
HestonPricer are the two stable reference implementations of this contract; see
software design.
Methods
| Model | Dynamics | Implementation | Article · example |
|---|---|---|---|
| Karasinski-Sepp log-normal SV with quadratic drift | $dS_t = r(t) S_t dt + \sigma_t S_t dW^{(0)}_t$, $d\sigma_t = (\kappa_1 + \kappa_2 \sigma_t)(\theta - \sigma_t) dt + \beta \sigma_t dW^{(0)}_t + \varepsilon \sigma_t dW^{(1)}_t$, $dI_t = \sigma^2_t dt$, with uncorrelated $W^{(0)}, W^{(1)}$, volatility beta $\beta \in \mathbb{R}$, volatility of residual volatility $\varepsilon > 0$ and $\vartheta^2 = \beta^2 + \varepsilon^2$ | LogSVPricer, LogSvParams in src/stochvolmodels/pricers/logsv_pricer.py |
LogSV model · examples/docs/logsv_model.py |
| Heston SV | $dS_t = r(t) S_t dt + \sqrt{V_t} S_t dW^{(S)}_t$, $dV_t = \kappa(\theta - V_t) dt + \vartheta \sqrt{V_t} dW^{(V)}_t$, with correlation $\rho$ between $W^{(S)}$ and $W^{(V)}$ | HestonPricer, HestonParams in src/stochvolmodels/pricers/heston_pricer.py |
Heston model · examples/docs/heston_model.py |
| Approximate LogSV smile fitter | three-parameter smile illustration for one slice; not a substitute for calibrating the full term-structure model | fit_logsv_ivols, calc_logsv_ivols in stochvolmodels.fitters |
LogSV smile fitter · run_logsv_smile_fitter.py |
Analytics at a glance
A model specifies parameters and the supported dynamics, transform or terminal law. A payoff describes a contract's observations, cash flow and settlement units. A pricer combines a model, contract and valuation method to produce a premium or the instrument's documented quote. For example, the factor HJM adapters return annual normal implied volatility for swaptions and futures options. The examples multiply the absolute rate quote by 10,000 to display bp per square-root year.
OptionChain holds market observations by expiry. A path-dependent contract implements products.Payoff, and valuation.py discounts path cash flows or integrates a terminal density. ModelPricer.price_chain is the common pricing entry point. Fitters consume market quotes, historical estimators consume observed time series, and PDE solvers propagate supplied coefficients and boundary conditions. Package ownership and module maps
| Analytical question | Runnable checkout example | Guide |
|---|---|---|
| How do I price or calibrate a classical LogSV smile? | LogSV model | LogSV dynamics and transform |
| How do Heston prices compare across strikes? | Heston pricer | Heston model |
| How do I check the experimental rough-LogSV pricer in the constant-volatility limit? | Rough LogSV pricer | Rough LogSV and scope of replay |
| How do I price an ATM option under two volatility regimes? | Regime-switching LogSV | Regime model modules |
| How do I propagate a density or value a local-vol or LSV vanilla? | Local volatility and LSV | Generators, PDE pricing and leverage calibration |
| Which contracts can a GMM, Student-t or inverse-gamma terminal law value? | GMM and Student-t · inverse-gamma | Terminal distributions |
| How far is a fitted price or IV from its market quote? | Native quote and fit reports | Fit diagnostics |
| Which OCA contracts and price units produced those residuals? | Synthetic OCA reconstruction and fit | OCA provenance handoff |
| How do I forecast realized volatility from historical prices? | Walk-forward forecast | Forecast horizons, features and targets |
| How do I add a model and check its pricer? | Constant-volatility tutorial | Pricer interface |
The package root lists its stable names in stochvolmodels.__all__. Model capabilities, path valuation and PDE interfaces are provisional direct imports. Rough LogSV and factor HJM are experimental. The stability guide describes historical aliases and each tier's import contract.
Five-minute quickstart
This first result runs from the installed package and needs no credentials, local YAML, qis,
OptionChainAnalytics, or data download:
import stochvolmodels as svm
params = svm.LogSvParams(
sigma0=1.0,
theta=1.0,
kappa1=5.0,
kappa2=5.0,
beta=0.2,
volvol=2.0,
)
price, implied_vol = svm.LogSVPricer().price_vanilla(
params=params,
ttm=0.25,
forward=1.0,
strike=1.0,
optiontype="C",
)
print(f"price={price:.6f}, implied_vol={implied_vol:.6f}")
Expected output in 2.6.1 (with the corrected coefficients), after the
initial Numba compilation:
price=0.197698, implied_vol=1.001478
The fuller repository quickstart prices a two-maturity
synthetic chain and prints two five-strike slices with deterministic reference values including
vanilla_price=0.197698 and six_month_atm_price=0.275623. Repository examples are not
included in the wheel, so clone the repository before running them:
python examples/getting_started/quickstart.py
The pinned 2.6.0 release retains the earlier results: vanilla_price=0.197331,
vanilla_ivol=0.999577, six_month_atm_price=0.275202 and
six_month_atm_ivol=0.995757. Use its version-matched tagged quickstart, as described
in the installation guide, when reproducing that release.
The first call normally takes seconds because Numba compiles the numerical kernels.
Examples
Highlighted examples
Computing model prices and vols (examples/pricers/run_lognormal_sv_pricer.py):
import numpy as np
from stochvolmodels import LogSVPricer, LogSvParams, OptionChain
logsv_pricer = LogSVPricer()
params = LogSvParams(sigma0=1.0, theta=1.0, kappa1=5.0, kappa2=5.0, beta=0.2, volvol=2.0)
# 1. compute the price
model_price, vol = logsv_pricer.price_vanilla(params=params,
ttm=0.25,
forward=1.0,
strike=1.0,
optiontype='C')
print(f"price={model_price:0.4f}, implied vol={vol: 0.2%}")
# 2. prices for slices
model_prices, vols = logsv_pricer.price_slice(params=params,
ttm=0.25,
forward=1.0,
strikes=np.array([0.9, 1.0, 1.1]),
optiontypes=np.array(['P', 'C', 'C']))
# 3. prices for option chain with uniform strikes
option_chain = OptionChain.get_uniform_chain(ttms=np.array([0.083, 0.25]),
ids=np.array(['1m', '3m']),
strikes=np.linspace(0.9, 1.1, 3))
model_prices, vols = logsv_pricer.compute_chain_prices_with_vols(option_chain=option_chain, params=params)
Calibration to sample Bitcoin options data and comparison of model prices with Monte Carlo (same script):
import stochvolmodels as sv
btc_option_chain = sv.get_btc_test_chain_data()
params0 = LogSvParams(sigma0=0.8, theta=1.0, kappa1=5.0, kappa2=None, beta=0.15, volvol=2.0)
btc_calibrated_params = logsv_pricer.calibrate_model_params_to_chain(option_chain=btc_option_chain,
params0=params0,
constraints_type=sv.ConstraintsType.INVERSE_MARTINGALE)
logsv_pricer.plot_model_ivols_vs_bid_ask(option_chain=btc_option_chain,
params=btc_calibrated_params)
uniform_chain_data = OptionChain.to_uniform_strikes(obj=btc_option_chain, num_strikes=31)
logsv_pricer.plot_comp_mma_inverse_options_with_mc(option_chain=uniform_chain_data,
params=btc_calibrated_params,
nb_path=400000)
The full fitted-surface and analytic-versus-Monte-Carlo figures are generated by the paper
workflow in papers/logsv_model_with_quadratic_drift_ijtaf_2023
and are not committed as build artifacts.
Heston slices across correlations (examples/pricers/run_heston_pricer.py):
import numpy as np
import matplotlib.pyplot as plt
from stochvolmodels import HestonPricer, HestonParams, OptionChain
params_dict = {'rho=0.0': HestonParams(v0=0.2**2, theta=0.2**2, kappa=4.0, volvol=0.75, rho=0.0),
'rho=-0.4': HestonParams(v0=0.2**2, theta=0.2**2, kappa=4.0, volvol=0.75, rho=-0.4),
'rho=-0.8': HestonParams(v0=0.2**2, theta=0.2**2, kappa=4.0, volvol=0.75, rho=-0.8)}
option_chain = OptionChain.get_uniform_chain(ttms=np.array([0.25]), ids=np.array(['3m']), strikes=np.linspace(0.8, 1.15, 20))
option_slice = option_chain.get_slice(id='3m')
pricer = HestonPricer()
pricer.plot_model_slices_in_params(option_slice=option_slice, params_dict=params_dict)
plt.show()
Approximate smile fit on the bundled chain — one two-maturity chain captured from OCA's deterministic simulator ships with the package; it is generated data rather than a vendor snapshot:
import numpy as np
from stochvolmodels.data.sample_option_chains import get_oca_simulated_chain_data
from stochvolmodels.fitters import calc_logsv_ivols, fit_logsv_ivols
chain = get_oca_simulated_chain_data()
idx = 1 # one-month slice
log_strikes = np.log(chain.strikes_ttms[idx] / chain.forwards[idx])
mid_vols = 0.5 * (chain.bid_ivs[idx] + chain.ask_ivs[idx])
fit = fit_logsv_ivols(log_strikes, mid_vols, chain.ttms[idx])
fitted_vols = calc_logsv_ivols(log_strikes, **fit)
The same chain can be passed to LogSVPricer.calibrate_model_params_to_chain() for a full
analytic model calibration.
Runnable examples
| Data route | Local data needed | SVM entry point | Example |
|---|---|---|---|
| Bundled OCA-generated chain | No | get_oca_simulated_chain_data() |
run_logsv_smile_fitter.py |
| Any normalised OCA panel | No for OCA's simulator | load_option_chain() |
run_oca_logsv_calibration.py |
| OCA CBOE cache | Yes | load_cboe_option_chain() |
load_cboe_option_chain.py |
| OCA ThetaData EOD cache | Yes | load_thetadata_option_chain() |
run_spy_thetadata_month.py |
| OCA Tardis hourly archive | Yes | load_tardis_hourly_option_chain() |
clustered-jump paper workflows |
| OCA Tardis 08:00 UTC EOD cache | Yes | load_tardis_eod_option_chain() |
clustered-jump chain calibration |
The repository does not redistribute CBOE, ThetaData, or Tardis records. OCA owns provider access,
normalisation, and caches; SVM receives only the strikes, option types, forwards, discounts, and
bid/ask quotes required for an illustration or calibration. The cached routes need
pip install "stochvolmodels[research]" and RESOURCE_PATH in the local settings file; the
examples guide describes each loader and the cache layout, and
papers/jump_risk_premia_clustered_jumps_sifin_2027/README.md
sets the script-by-script Tardis hourly-versus-EOD data policy. The
examples/docs/ scripts are the canonical scripts of the documentation
articles. Each concrete pricer has an offline example under examples/pricers/.
The example index also gives the commands
for OHLC variance estimation and walk-forward volatility forecasting.
From method to implementation
| Method | Implementation | Article · script |
|---|---|---|
| Fourier pricing from the moment generating function (IJTAF paper) | LogSVPricer.price_chain |
European option pricing, affine expansion · european_option_pricing.py |
| Analytic versus Monte Carlo validation | model_mc_price_chain, compute_mc_chain_implied_vols |
analytic vs Monte Carlo · analytic_vs_monte_carlo.py |
| Martingale conditions and skews | ConstraintsType |
martingale conditions and skews · martingale_conditions_and_skews.py |
| Calibration to a chain | calibrate_model_params_to_chain |
calibration · calibration.py |
| Inverse options (Quantitative Finance paper) | inverse-option payoff branches | inverse options · inverse_options.py |
| Quadratic variance options | examples/pricers QVAR runners |
quadratic variance options · quadratic_variance_options.py |
| Reproducing the papers | papers/ |
reproducing the papers |
Testing
uv sync --locked --group test
uv run --no-sync pytest
uv run --locked --only-group lint ruff check --select F,TID251,TID253,ICN src/stochvolmodels
From a source checkout, the complete public artifact and documentation path is verified with:
uv sync --locked --group test --extra docs
uv run --no-sync pytest -m "not slow"
uv run --no-sync pytest -m slow
uv run --no-sync pytest --cov=stochvolmodels --cov-report=json
uv run --no-sync python scripts/check_coverage_scopes.py coverage.json
uv run --no-sync python -m sphinx -W --keep-going -b html docs docs/_build/html
uv build
uv run --no-project python scripts/check_sdist_contents.py dist/*.tar.gz
uv run --no-project python scripts/check_wheel_contents.py dist/*.whl
See the testing and coverage guide and the full verification guide.
Changelog
Release history is maintained in CHANGELOG.md.
Feedback & contributing
- Bug: report a reproducible bug, including the package version, Python/platform, inputs, and expected versus actual result.
- Feature: request a feature, describing the payoff, quote convention, or model edge case, the current workaround, and the smallest useful API.
- Question or methodology: search or open an issue and name the model, paper section, or convention involved.
- Contribution: read CONTRIBUTING.md for scope, development commands, numerical-change rules, and pull-request guidance.
Acknowledgments
- Parviz Rakhmonov, co-developer of the log-normal stochastic volatility model with quadratic drift that the package implements.
Citation
Machine-readable metadata is available in CITATION.cff. If you use this
package in your research, please cite the software and the relevant papers:
@misc{sepp2026stochvolmodels,
title={StochVolModels: Python Implementation of Stochastic Volatility Models},
author={Sepp, Artur},
year={2026},
version={2.20.0},
url={https://github.com/ArturSepp/StochVolModels},
note={Python package for pricing analytics and Monte Carlo simulations}
}
@article{sepprakhmonov2023,
title={Log-normal stochastic volatility model with quadratic drift},
author={Sepp, Artur and Rakhmonov, Parviz},
journal={International Journal of Theoretical and Applied Finance},
volume={26},
number={8},
year={2023},
url={https://www.worldscientific.com/doi/epdf/10.1142/S0219024924500031}
}
@misc{sepprakhmonov2023b,
title={What is a robust stochastic volatility model},
author={Sepp, Artur and Rakhmonov, Parviz},
year={2023},
note={SSRN working paper, revised 29 February 2024},
url={https://ssrn.com/abstract=4647027}
}
@article{lucicsepp2024,
title={Valuation and hedging of cryptocurrency inverse options},
author={Lucic, Vladimir and Sepp, Artur},
journal={Quantitative Finance},
volume={24},
number={7},
pages={851--869},
year={2024},
url={https://www.tandfonline.com/doi/full/10.1080/14697688.2024.2364804}
}
@article{sepprakhmonov2025,
title={Stochastic volatility for factor Heath-Jarrow-Morton framework},
author={Sepp, Artur and Rakhmonov, Parviz},
volume={28},
pages={12},
year={2025},
journal={Review of Derivatives Research},
doi={10.1007/s11147-025-09217-4},
note={Preprint: https://ssrn.com/abstract=4646925}
}
@article{liptonlucicsepp2025,
author={Lipton, Alexander and Lucic, Vladimir and Sepp, Artur},
title={Unified approach for hedging impermanent loss of liquidity provision},
journal={Digital Finance}, volume={7}, pages={429--477}, year={2025},
doi={10.1007/s42521-025-00144-5}
}
@article{liupackhamsepp2025,
author = {Liu, Francis and Packham, Natalie and Sepp, Artur},
title = {Jump risk premia in the presence of clustered jumps},
journal = {SIAM Journal on Financial Mathematics},
year = {forthcoming},
note = {Accepted for publication. Preprint: arXiv:2510.21297 (2025)},
url = {https://arxiv.org/abs/2510.21297}
}
@article{liptonsepp2022barriers,
author={Lipton, Alexander and Sepp, Artur},
title={Toward an efficient hybrid method for pricing barrier options on assets with stochastic volatility},
journal={Wilmott}, year={2022}, url={https://arxiv.org/abs/2202.07849}
}
@unpublished{sepprakhmonov2026robust,
author={Sepp, Artur and Rakhmonov, Parviz},
title={What Is a Robust Stochastic Volatility Model? Measure Changes, Martingality and Cross-Asset Applications},
year={2026}, note={Authors' local revision, 17 November}
}
@unpublished{sepprakhmonov2026rough,
author={Sepp, Artur and Rakhmonov, Parviz},
title={Rough Log-normal Stochastic Volatility with Quadratic Drift: Second-moment stability and the martingale property under positive correlation},
year={2026}, note={Authors' local working draft, 18 November}
}
Ecosystem
This package is part of an open-source Python stack for quantitative finance. The ArturSepp profile is the canonical catalogue:
| Package | Purpose |
|---|---|
qis |
Performance analytics, backtesting, and factsheet reporting |
optimalportfolios |
Portfolio construction and rolling backtesting |
factorlasso |
Sparse factor-model estimation |
bbg-fetch |
Bloomberg data in pandas DataFrames |
option-chain-analytics |
Point-in-time option-chain data and queries |
vanilla-option-pricers |
Numba-vectorised BSM and Bachelier pricing |
stochvolmodels (this package) |
Stochastic-volatility pricing and calibration |
trendfollowing |
Closed-form trend-following analytics |
privateassets |
Multi-factor PME for private assets |
goal-based-allocation |
Goal-based allocation under regime-switching jump-diffusions |
For this package, vanilla-option-pricers is a runtime dependency; the research extra adds qis
and option-chain-analytics.
License
MIT — see LICENSE.txt.
Disclaimer
stochvolmodels is distributed FREE & WITHOUT ANY WARRANTY under the MIT License. See
LICENSE.txt in the release for details. Use the routes in
Feedback & contributing for bugs, feature requests and
methodology questions.
Metadata
Release files for stochvolmodels 2.20.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| stochvolmodels-2.20.0.tar.gz | 778.2 kB | With provenance | Details for stochvolmodels-2.20.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| stochvolmodels-2.20.0-py3-none-any.whl | Python 3 | none | any | Details for stochvolmodels-2.20.0-py3-none-any.whl |
Total release size: 1.7 MB
Release files / stochvolmodels-2.20.0.tar.gz
| Download URL | stochvolmodels-2.20.0.tar.gz |
|---|---|
| Size | 778.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6b30e387bb0519edac600eb9c2830493d3037bc952cde35da17836b740a73641
|
|
BLAKE2b-256 checksum How to use checksums |
3ad4eb5d8186386fbbc6eb956edd8b7e0bd9298c37c461a65f2d0ec2a2a460ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logRelease files / stochvolmodels-2.20.0-py3-none-any.whl
| Download URL | stochvolmodels-2.20.0-py3-none-any.whl |
|---|---|
| Size | 888.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9da2649b5d5b4056d43e7439359b892fdfb4d91575b3330856941e571720cffc
|
|
BLAKE2b-256 checksum How to use checksums |
cf151a7dc3ff6dec4f83ee6057b80264c67e1a92b5ddefa995f8603280e081af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logSecurity for stochvolmodels 2.20.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for stochvolmodels-2.20.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.