1.9 KiB
1.9 KiB
CLAUDE.md
This directory is the executable source of truth for Quant OS. quant60 is
its first A-share Baseline kernel/package; the project itself also owns data,
research, portfolio, execution, evidence, and platform adapters. Obsidian
contains research and status documentation only.
Development commands
Run all commands from this directory:
make test
make bundle
make smoke
make verify
make doctor
make local
The zero-install path is PYTHONPATH=src:. python3 .... Do not require a
virtual environment for the deterministic local smoke.
Platform boundaries
dist/joinquant_strategy.pyis the generated single-file JoinQuant upload.dist/qmt_builtin_strategy.pyis the generated QMT built-in backtest file.platforms/qmt_research_runner.pydrives qmttools backtests.adapters/xttrader_live.pyis the guarded external QMT/XtTrader boundary.platforms/qlib_runner.pyis an isolated Qlib research bridge.notebooks/quant_os_colab.ipynbmust remain executable locally and in Colab.
Never make QMT built-in code live-capable. Real broker mutation stays disabled unless the external XtTrader adapter receives a fresh, account-bound guard.
Security
- Never commit passwords, tokens, cookies, broker userdata, account exports, private keys, or reusable credentials.
- JoinQuant authentication uses an interactive browser session.
- QMT configuration is injected through local environment variables; only
placeholder names belong in
.env.example. - Fake, synthetic, and unit-test evidence must never be described as a real platform or broker pass.
Definition of done
A change is complete only when:
- unit/integration tests pass;
- hosted bundles rebuild and pass Python 3.6 syntax checks;
- the deterministic smoke and manifest verifier pass;
- docs state the exact evidence class and remaining external gate;
- no secret or machine-specific absolute path is added to tracked artifacts.