Skip to content
GeneratedGenerated from the built extension by scripts/generate_python_api_reference.py; CI fails if it is stale.

Python API reference

Import the package as openquant. Modules marked compiled are Rust bindings; help() on any of their functions prints the same signature and text as below, and type checkers read the shipped .pyi stubs. For the Rust crate itself see the rustdoc reference.

Modules

ModuleKindItemsSummary
openquant.adapterspython8
openquant.backtest_statscompiled10
openquant.backtesting_enginepython3CPCV backtest paths from out-of-sample results you computed (AFML chapters 11 and 12).
openquant.barspython5
openquant.bet_sizingcompiled28
openquant.clacompiled1
openquant.codependencecompiled7
openquant.cross_validationpython11Purged k-fold, walk-forward and combinatorial purged cross-validation (AFML chapters 7, 12).
openquant.datapython14
openquant.dynamic_allocationcompiled5
openquant.ef3mcompiled4
openquant.ensemblecompiled9
openquant.evaluationpython11Research evaluation: is a backtest's Sharpe ratio evidence of skill?
openquant.fast_ewmacompiled1
openquant.feature_diagnosticspython6
openquant.feature_importancepython5MDI, MDA and SFI feature importance (AFML chapter 8) for any scikit-learn-style model.
openquant.filterscompiled4
openquant.fracdiffcompiled4
openquant.hcaacompiled1
openquant.hrpcompiled1
openquant.hyperparameter_tuningpython4Hyperparameter search on purged k-fold splits (AFML chapter 9), for any Python model.
openquant.labelingcompiled7
openquant.microstructuralcompiled22
openquant.onccompiled1
openquant.pipelinepython4
openquant.portfoliocompiled6
openquant.researchpython5
openquant.riskcompiled7
openquant.sample_weightscompiled2
openquant.samplingcompiled7
openquant.sb_baggingcompiled3
openquant.strategy_riskcompiled7
openquant.streaming_hpccompiled2
openquant.structural_breakscompiled3
openquant.synthetic_btcompiled6
openquant.vizpython6
openquant.volatilitycompiled4

Compiled modules behind the wrappers

These compiled modules have a pure-Python module of the same name in front of them (for example openquant.bars wraps openquant._core.bars). The wrappers are the supported interface; the compiled functions are listed for completeness.