Quickstart
Confirm that your local environment can run OpenQuant’s core tests and documentation quality gates.
Step 1: Clone and enter repository
Section titled “Step 1: Clone and enter repository”git clone https://github.com/Open-Quant/openquant.gitcd openquantStep 2: Run fast library validation
Section titled “Step 2: Run fast library validation”cargo test --workspace --lib --tests --all-features -- --skip test_sadf_testExpected result:
- non-slow test suite passes.
Step 3: Run slow structural-break hotspot
Section titled “Step 3: Run slow structural-break hotspot”cargo test -p openquant --test structural_breaks test_sadf_test -- --ignoredExpected result:
- explicit slow-path test passes.
Step 4: Validate docs build and quality gates
Section titled “Step 4: Validate docs build and quality gates”cd docs-sitebun run check:docsExpected result:
build,check:links,check:api-drift, andcheck:content-schemaall pass.
Step 5: Run your first research workflow
Section titled “Step 5: Run your first research workflow”from openquant.research import make_synthetic_futures_dataset, run_flywheel_iteration
# Generate deterministic synthetic multi-asset futures datadataset = make_synthetic_futures_dataset(n_bars=192, seed=7)
# Run a complete AFML pipeline: events → labels → sizing → portfolio → riskresult = run_flywheel_iteration(dataset)
# Inspect key metricsprint(result["summary"])# portfolio_sharpe | realized_sharpe | value_at_risk | net_sharpe | turnover
# Check promotion gates (is this strategy viable?)print(result["promotion"])# {'passed_net_sharpe': True, 'promote_candidate': True, ...}