qis documentation

Author: Artur Sepp / First recorded: 2026-07-25

Implemented in qis — Quantitative Investment Strategies. Software citation: CITATION.cff.

qis is for quantitative portfolio managers, researchers and investors who analyse portfolio performance and backtest investment strategies. Reported results can differ when return frequency, risk-free-rate treatment and rebalancing conventions are left unstated. The library makes those conventions explicit and uses shared calculations across analytics, backtests and reports.

qis — Quantitative Investment Strategies is a Python library for performance analytics, portfolio backtesting, risk analysis and factsheet reporting. It works with price and NAV time series and externally constructed portfolio weights. These guides explain the methods, calculation conventions and runnable examples behind its reports.

Versions and compatibility

Use stable documentation for a released package and latest documentation for main. Stable can lag the newest PyPI release: compare the site’s build version with your installed version. Latest can describe unreleased work. Channel links lead to the home page because an individual page may not exist in both versions.

The core chart, backtest, factsheet and risk examples below support qis>=5.37.0. Native factor-unit and observed-index stress workflows require qis>=5.38.1. The current FX workflow uses qis>=6.0.0: the qis.fx namespace, typed returns, exact notional payoffs, monthly cash measurement and explicit account financing. Factor-price inputs live in qis.portfolio.risk.factors_data. The holdings-alpha coverage example also requires qis>=6.0.0. See the FX migration guide for removed interfaces and saved-checkpoint migration.

These are verified support floors, not claims about when each API first appeared. Obtain repository-only scripts from the matching release or the source revision cited by a guide; main may contain later additions.

Capability

Minimum supported release for these examples

Offline charts, held-unit backtests and factsheets

qis>=5.37.0

Ex-ante/ex-post risk and tracking-error workflows

qis>=5.37.0

Native factor-unit and observed-index stress workflows

qis>=5.38.1

Current FX workflow, common monthly cash and holdings-alpha coverage

qis>=6.0.0

The PyPI classifier remains Beta. It does not promise that every exported helper has a frozen signature. The generated API reference distinguishes the core API from other exports. The compatibility policy requires changelog and version treatment for public API/default changes, introduces replacements when practical, and documents urgent corrections. It promises no fixed deprecation period.

QIS source is MIT licensed. Optional dependencies retain their own licences; installing an extra does not change them.

Each successful HTML build also emits llms.txt and llms-api.txt. The page notice links them. They are generated by the existing Sphinx indexing extension from discovered canonical pages and the API producer’s verified export contract; no second API list is maintained.

Start here

  1. Install qis. The core installation command is python -m pip install qis.

  2. Follow the offline quickstart for a first chart, portfolio backtest, performance table and benchmark-relative results.

  3. Browse the factsheet gallery to choose a report, and read Notation and conventions before interpreting or comparing results.

  4. How reliable is a strategy’s performance? The default Performance confidence and stability page shows 95% confidence intervals for the Sharpe ratio and for holdings-weighted alpha relative to the first supplied benchmark. Strategy-versus-benchmark reports show the paired difference in Sharpe ratios and marginal alpha. Multi-strategy reports compare each alternative with a base portfolio and report Holm-adjusted p-values for those comparisons.

After installation, the quickstart calculations use fixed synthetic data without network access or optional extras. The complete portfolio workflow lives in examples/getting_started/offline_quickstart.py. The quickstart page includes that source and provides links for Markdown viewers.

The qis analytics handbook

The methodology chapters form one book. Each chapter defines its method with formulas and concise proofs, states its conventions in a seven-row convention card, works a small example whose numbers the test suite checks, and links to the functions that implement it. Symbols keep one meaning throughout; see Notation and conventions and the bibliography.

Part I: Foundations

Part II: Performance measurement

Part III: Estimation

Part IV: Portfolios

Part V: Risk

The risk monitoring guide maps everyday monitoring questions to the chapters below and computes a point-in-time risk snapshot of one portfolio.

Part VI: Currency returns, hedging and accounting

Part VII: Attribution

Reporting guides

Reference

The following compact notes also ship with the Python package. Site builds render them alongside the articles; the source links remain usable when reading this page in a checkout.

Convention

Site note

Packaged source

Sharpe ratios

Convention summary

sharpe_conventions.md

Reporting grids

Frequency reference

reporting_frequencies.md

Plot styling

Shared plotting arguments

plotting_kwargs.md

Project resources