Skip to content

Commit 1419579

Browse files
authored
docs: rewrite open-source readmes
Rewrite the README pair as separate English and Chinese open-source project entry points.
1 parent 01c3864 commit 1419579

2 files changed

Lines changed: 46 additions & 78 deletions

File tree

README.md

Lines changed: 23 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -2,62 +2,46 @@
22

33
[Chinese README](README.zh-CN.md)
44

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.
66
7-
## What this project does
7+
## What this repository is
88

9-
QuantPlatformKit is a **Shared platform library** in the QuantStrategyLab ecosystem. It contains shared broker adapters, runtime contracts, strategy-loading interfaces, and notification utilities used by QuantStrategyLab platforms.
9+
QuantPlatformKit is a QuantStrategyLab shared runtime library. It provides shared contracts, broker adapters, strategy loaders, notification utilities, and runtime helpers used by platform repositories.
1010

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.
1212

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
1614

17-
## Current status
18-
19-
Shared library; changes should stay backward compatible unless a coordinated platform migration is planned.
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.
2019

2120
## Repository layout
2221

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.
2726

2827
## Quick start
2928

30-
From a fresh clone:
31-
3229
```bash
3330
python -m pip install -e .
3431
python -m pytest -q
3532
```
3633

37-
If a command requires credentials, run it only after reading the relevant workflow or runbook and configuring secrets outside Git.
38-
39-
## Deployment and operation
40-
41-
Install this library from platform repositories. Run platform tests after changing contracts, adapters, or notification behavior.
42-
43-
Prefer manual or dry-run execution first. Enable schedules or live execution only after logs, artifacts, permissions, and rollback steps are reviewed.
44-
45-
## Strategy performance and evidence
46-
47-
Not a strategy repository. It supports execution reliability; strategy performance belongs to strategy and snapshot repositories.
48-
49-
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.
50-
51-
## Safety notes
52-
53-
- Never commit API keys, broker credentials, OAuth tokens, cookies, or account identifiers.
54-
- Run new strategies and platform changes in dry-run or paper mode before any live execution.
55-
- Review generated orders, artifacts, and logs manually before enabling schedules.
56-
57-
## Contributing
34+
## Useful docs
5835

59-
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.
36+
- [`docs/platform_notification_outcomes.md`](docs/platform_notification_outcomes.md)
37+
- [`docs/platform_notification_outcomes.zh-CN.md`](docs/platform_notification_outcomes.zh-CN.md)
38+
- [`docs/platform_repo_boundaries.md`](docs/platform_repo_boundaries.md)
39+
- [`docs/platform_repo_boundaries.zh-CN.md`](docs/platform_repo_boundaries.zh-CN.md)
40+
- [`docs/quantconnect.md`](docs/quantconnect.md)
41+
- [`docs/strategy_plugin_runtime_contract.md`](docs/strategy_plugin_runtime_contract.md)
42+
- [`docs/strategy_plugin_runtime_contract.zh-CN.md`](docs/strategy_plugin_runtime_contract.zh-CN.md)
43+
- [`docs/us_equity_cross_platform_strategy_spec.md`](docs/us_equity_cross_platform_strategy_spec.md)
6044

6145
## License
6246

63-
See [LICENSE](LICENSE) if present in this repository.
47+
See [LICENSE](LICENSE).

README.zh-CN.md

Lines changed: 23 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -2,62 +2,46 @@
22

33
[English README](README.md)
44

5-
> ⚠️ 投资有风险,不构成投资建议,仅供学习交流用途
5+
> 投资有风险。本项目不构成投资建议,仅用于学习、研究和工程审阅
66
7-
## 这个项目做什么
7+
## 这个仓库是什么
88

9-
QuantPlatformKit 是 QuantStrategyLab 体系中的**共享平台库**。提供 QuantStrategyLab 平台共用的券商适配器、运行时契约、策略加载接口和通知工具
9+
QuantPlatformKit 是 QuantStrategyLab 的共享运行时库。平台仓库共用的契约、券商适配器、策略加载器、通知工具和运行辅助代码
1010

11-
## 适合谁使用
11+
它支撑系统运行,但不决定哪个策略应该 live。策略资格由策略仓和 snapshot 仓负责;券商执行由平台仓负责。
1212

13-
- 希望阅读、复现或扩展 QuantStrategyLab 相关模块的工程师和研究人员。
14-
- 在阅读详细 runbook 或 workflow 前,需要先理解项目入口的运维人员。
15-
- 在启用自动化前,需要确认项目职责、安全边界和证据要求的 reviewer。
13+
## 设计边界
1614

17-
## 当前状态
18-
19-
共享库;除非有协同迁移计划,否则改动应保持向后兼容。
15+
- 下游仓库依赖的契约要保持稳定,必要时做版本化。
16+
- 除非有协同迁移计划,否则优先保持向后兼容。
17+
- 密钥和环境专属配置不要写进共享库代码。
18+
- 会影响多个平台或策略包的改动,需要在文档中说明。
2019

2120
## 仓库结构
2221

23-
- `src/`主要库代码和运行时代码
24-
- `tests/`单元测试和契约测试
25-
- `docs/`详细设计说明、运行手册和证据文档
26-
- `.github/workflows/`:CI、定时任务和部署 workflow。
22+
- `src/`库代码和运行时代码
23+
- `tests/`单元测试、契约测试和回归测试
24+
- `docs/`运行手册、设计说明、证据和集成契约
25+
- `.github/workflows/`:CI、定时任务、发布或部署 workflow。
2726

2827
## 快速开始
2928

30-
从全新 clone 开始:
31-
3229
```bash
3330
python -m pip install -e .
3431
python -m pytest -q
3532
```
3633

37-
如果命令需要凭据,请先阅读相关 workflow 或 runbook,并把密钥配置在 Git 之外。
38-
39-
## 部署和运行
40-
41-
由各执行平台安装使用。本库变更了契约、适配器或通知行为后,应同步运行平台侧测试。
42-
43-
建议先手工运行或 dry-run。只有在日志、产物、权限和回滚步骤都检查过之后,才启用定时任务或 live 执行。
44-
45-
## 策略表现与证据边界
46-
47-
这不是策略仓库。它服务于执行可靠性;策略表现应在策略仓库和快照仓库中评估。
48-
49-
README 不应该承诺固定收益或过期指标。实际使用前,请重新运行对应测试、回测或流水线任务。
50-
51-
## 安全注意事项
52-
53-
- 不要把 API key、券商凭据、OAuth token、Cookie 或账户标识提交到 Git。
54-
- 新策略或平台变更在 live 前必须先跑 dry-run 或 paper 流程。
55-
- 启用定时任务前,需要人工检查生成的订单、产物和日志。
56-
57-
## 参与贡献
34+
## 延伸文档
5835

59-
请保持改动小、可复现,并用最小必要测试覆盖。涉及策略的改动,需要附上验证行为的证据产物或命令。
36+
- [`docs/platform_notification_outcomes.md`](docs/platform_notification_outcomes.md)
37+
- [`docs/platform_notification_outcomes.zh-CN.md`](docs/platform_notification_outcomes.zh-CN.md)
38+
- [`docs/platform_repo_boundaries.md`](docs/platform_repo_boundaries.md)
39+
- [`docs/platform_repo_boundaries.zh-CN.md`](docs/platform_repo_boundaries.zh-CN.md)
40+
- [`docs/quantconnect.md`](docs/quantconnect.md)
41+
- [`docs/strategy_plugin_runtime_contract.md`](docs/strategy_plugin_runtime_contract.md)
42+
- [`docs/strategy_plugin_runtime_contract.zh-CN.md`](docs/strategy_plugin_runtime_contract.zh-CN.md)
43+
- [`docs/us_equity_cross_platform_strategy_spec.md`](docs/us_equity_cross_platform_strategy_spec.md)
6044

6145
## 许可证
6246

63-
如仓库包含 [LICENSE](LICENSE),请以该文件为准
47+
详见 [LICENSE](LICENSE)

0 commit comments

Comments
 (0)