MCPcopy Create free account
hub / github.com/Open-Quant/openquant

github.com/Open-Quant/openquant @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
1,431 symbols 4,123 edges 154 files ⚖ MIT 52 documented · 4% ● updated today★ 576 open issues

Browse by type

⨍ Functions 1,255◇ Types & classes 174↳ Endpoints 2
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

OpenQuant

OpenQuant

Rust implementations of the methods in Advances in Financial Machine Learning, with Python bindings.

CI Docs MIT license

Documentation · Quickstart · Issues

Status

Pre-release (0.1.0, unpublished). The Rust core covers most AFML chapters and is tested in CI. The module index lists the current Rust and Python surfaces. The installation below builds from source so the examples and extension use the same revision. Open work is tracked in issues; the reasoning behind it is in docs/design/production-readiness-brief.md.

Install

Requires a Rust toolchain (pinned by rust-toolchain.toml), Python 3.11+ and uv.

git clone https://github.com/Open-Quant/openquant.git && cd openquant
uv venv --python 3.13 .venv
uv sync --locked --group dev --no-install-project
uv run --no-sync --python .venv/bin/python maturin develop --release --manifest-path crates/pyopenquant/Cargo.toml
uv run --no-sync --python .venv/bin/python python -c "import openquant; print('ok')"

The Python distribution name is pyopenquant; the import name is openquant. Check the release notes for packaged release availability; the commands above do not depend on a published wheel. Do not pip install openquant - that name on PyPI belongs to an unrelated project. The extension crate (crates/pyopenquant) is built into a wheel with maturin and is never published to crates.io.

Explore and validate

  • Module index: available Rust and Python APIs, organized by AFML chapter.
  • Research workflow: notebooks, reproducible experiments and promotion criteria.
  • Benchmarks: measured results and their limitations, not investment-performance claims.
  • Agent guide: source map, research safeguards and validation commands.
# Core Rust tests (the long-running SADF test has a separate nightly gate)
cargo test --workspace --lib --tests --all-features -- --skip test_sadf_test

For the complete test, benchmark and documentation workflow, see CONTRIBUTING.md. Release criteria are in the publishing checklist. Experimental runners are research infrastructure, not a trading service or evidence of profitable strategies.

Contributing

See CONTRIBUTING.md for setup, the test and docs gates, and pull request conventions, and tests/FIXTURES.md for where the test fixtures come from. Report security problems privately (SECURITY.md).

License

MIT (LICENSE)

Extension points exported contracts — how you extend this code

browse all types & interfaces →

Core symbols most depended-on inside this repo

browse all functions →

Shape

Function 1,149
Class 133
Method 106
Enum 35
Interface 6
Route 2

Languages

Rust84%
Python15%
TypeScript1%

Modules by API surface

crates/openquant/src/microstructural_features.rs43 symbols
crates/openquant/src/bet_sizing.rs43 symbols
crates/openquant/src/backtesting_engine.rs35 symbols
crates/openquant/tests/ch10_snippets.rs34 symbols
crates/openquant/src/portfolio_optimization.rs33 symbols
crates/openquant/src/cla.rs31 symbols
python/openquant/feature_diagnostics.py30 symbols
crates/pyopenquant/src/bet_sizing.rs29 symbols
crates/openquant/src/streaming_hpc.rs29 symbols
crates/openquant/src/combinatorial_optimization.rs29 symbols
crates/openquant/src/data_processing.rs25 symbols
crates/openquant/src/hpc_parallel.rs24 symbols

For agents

$ claude mcp add openquant \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page