|
2 | 2 |
|
3 | 3 | [Chinese README](README.zh-CN.md) |
4 | 4 |
|
5 | | -> ⚠️ Investing involves risk. This project does not provide investment advice and is for educational and research purposes only. |
| 5 | +> Investing involves risk. This project does not provide investment advice and is for education, research, and engineering review only. |
6 | 6 |
|
7 | | -## What this project does |
| 7 | +## What this repository is |
8 | 8 |
|
9 | | -QuantStrategyPlugins is a **Plugin package** in the QuantStrategyLab ecosystem. It provides open sidecar strategy plugins that QuantStrategyLab runtimes can load without changing platform code. |
| 9 | +QuantStrategyPlugins is a QuantStrategyLab strategy plugin package. It provides sidecar strategy plugins such as market-regime controls, notification artifacts, and research-only plugin outputs. |
10 | 10 |
|
11 | | -## Who this is for |
| 11 | +It supports the system but does not decide which strategy should be live. Strategy eligibility remains in the strategy and snapshot repositories; broker execution remains in the platform repositories. |
12 | 12 |
|
13 | | -- Engineers and researchers who want to inspect, reproduce, or extend this part of the QuantStrategyLab stack. |
14 | | -- Operators who need a clear entry point before reading the deeper runbooks or workflow files. |
15 | | -- Reviewers who need to understand the repository purpose, safety boundary, and evidence requirements before enabling automation. |
| 13 | +## Design boundary |
16 | 14 |
|
17 | | -## Current status |
18 | | - |
19 | | -Extension package; plugin eligibility still depends on strategy validation. |
| 15 | +- Keep contracts stable and versioned where downstream repositories depend on them. |
| 16 | +- Prefer backward-compatible changes unless a coordinated migration is planned. |
| 17 | +- Keep secrets and environment-specific settings outside the shared library code. |
| 18 | +- Document changes that affect multiple platforms or strategy packages. |
20 | 19 |
|
21 | 20 | ## Repository layout |
22 | 21 |
|
23 | | -- `src/`: main library and runtime code. |
24 | | -- `tests/`: unit and contract tests. |
25 | | -- `docs/`: detailed design notes, runbooks, and evidence docs. |
26 | | -- `.github/workflows/`: CI, scheduled jobs, and deployment workflows. |
| 22 | +- `src/`: library and runtime code. |
| 23 | +- `tests/`: unit, contract, and regression tests. |
| 24 | +- `docs/`: runbooks, design notes, evidence, and integration contracts. |
| 25 | +- `.github/workflows/`: CI, scheduled jobs, release, or deployment workflows. |
27 | 26 | - `scripts/`: operator scripts and local helpers. |
28 | 27 |
|
29 | 28 | ## Quick start |
30 | 29 |
|
31 | | -From a fresh clone: |
32 | | - |
33 | 30 | ```bash |
34 | 31 | python -m pip install -e . |
35 | 32 | python -m pytest -q |
36 | 33 | ``` |
37 | 34 |
|
38 | | -If a command requires credentials, run it only after reading the relevant workflow or runbook and configuring secrets outside Git. |
39 | | - |
40 | | -## Deployment and operation |
41 | | - |
42 | | -Install or package the plugins with the target runtime, then point the platform loader to the plugin entrypoint. Validate in dry-run before enabling live execution. |
43 | | - |
44 | | -Prefer manual or dry-run execution first. Enable schedules or live execution only after logs, artifacts, permissions, and rollback steps are reviewed. |
45 | | - |
46 | | -## Strategy performance and evidence |
47 | | - |
48 | | -Plugin code does not make a strategy live-ready by itself. Use the associated strategy research artifacts to evaluate returns, drawdowns, benchmark comparison, and robustness. |
49 | | - |
50 | | -README files are intentionally not a source of dated performance promises. Re-run the relevant tests, backtests, or pipeline jobs before relying on any result. |
51 | | - |
52 | | -## Safety notes |
53 | | - |
54 | | -- Never commit API keys, broker credentials, OAuth tokens, cookies, or account identifiers. |
55 | | -- Run new strategies and platform changes in dry-run or paper mode before any live execution. |
56 | | -- Review generated orders, artifacts, and logs manually before enabling schedules. |
57 | | - |
58 | | -## Contributing |
| 35 | +## Useful docs |
59 | 36 |
|
60 | | -Keep changes small, reproducible, and covered by the narrowest useful tests. For strategy-facing changes, include the evidence artifact or command used to validate behavior. |
| 37 | +- [`docs/market-regime-control-plan.md`](docs/market-regime-control-plan.md) |
| 38 | +- [`docs/market-regime-control-plan.zh-CN.md`](docs/market-regime-control-plan.zh-CN.md) |
61 | 39 |
|
62 | 40 | ## License |
63 | 41 |
|
64 | | -See [LICENSE](LICENSE) if present in this repository. |
| 42 | +See [LICENSE](LICENSE). |
0 commit comments