Skip to content

Commit f1c9f68

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

2 files changed

Lines changed: 28 additions & 74 deletions

File tree

README.md

Lines changed: 14 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -2,61 +2,38 @@
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-
QuantRuntimeSettings is a **Runtime configuration package** in the QuantStrategyLab ecosystem. It defines schemas and tooling for shared QuantStrategyLab runtime settings.
9+
QuantRuntimeSettings is a QuantStrategyLab runtime settings package. It defines schemas and tooling for versioned runtime settings shared across QuantStrategyLab platforms.
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 configuration contract; changes can affect multiple platforms.
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-
- `tests/`: unit and contract tests.
24-
- `.github/workflows/`: CI, scheduled jobs, and deployment workflows.
22+
- `tests/`: unit, contract, and regression tests.
23+
- `.github/workflows/`: CI, scheduled jobs, release, or deployment workflows.
2524
- `scripts/`: operator scripts and local helpers.
2625

2726
## Quick start
2827

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

36-
If a command requires credentials, run it only after reading the relevant workflow or runbook and configuring secrets outside Git.
37-
38-
## Deployment and operation
39-
40-
Use the schemas in platform repositories and CI validation. Roll out setting changes through review, dry-run validation, and controlled platform deployment.
41-
42-
Prefer manual or dry-run execution first. Enable schedules or live execution only after logs, artifacts, permissions, and rollback steps are reviewed.
43-
44-
## Strategy performance and evidence
45-
46-
Not a strategy repository. Quality is measured by compatibility, validation coverage, and reducing configuration mistakes.
47-
48-
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.
49-
50-
## Safety notes
51-
52-
- Never commit API keys, broker credentials, OAuth tokens, cookies, or account identifiers.
53-
- Run new strategies and platform changes in dry-run or paper mode before any live execution.
54-
- Review generated orders, artifacts, and logs manually before enabling schedules.
55-
56-
## Contributing
33+
## Useful docs
5734

58-
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.
35+
- No separate `docs/` directory yet; start with this README and the workflow files.
5936

6037
## License
6138

62-
See [LICENSE](LICENSE) if present in this repository.
39+
See [LICENSE](LICENSE).

README.zh-CN.md

Lines changed: 14 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -2,61 +2,38 @@
22

33
[English README](README.md)
44

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

9-
QuantRuntimeSettings 是 QuantStrategyLab 体系中的**运行配置包**。定义 QuantStrategyLab 共享运行配置的 schema 和工具。
9+
QuantRuntimeSettings 是 QuantStrategyLab 的运行配置包。为 QuantStrategyLab 平台提供版本化运行配置 schema 和工具。
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-
- `tests/`单元测试和契约测试
24-
- `.github/workflows/`:CI、定时任务和部署 workflow。
22+
- `tests/`单元测试、契约测试和回归测试
23+
- `.github/workflows/`:CI、定时任务、发布或部署 workflow。
2524
- `scripts/`:运维脚本和本地辅助工具。
2625

2726
## 快速开始
2827

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

36-
如果命令需要凭据,请先阅读相关 workflow 或 runbook,并把密钥配置在 Git 之外。
37-
38-
## 部署和运行
39-
40-
在平台仓库和 CI 校验中使用这些 schema。配置变更应经过 review、dry-run 验证和受控平台发布。
41-
42-
建议先手工运行或 dry-run。只有在日志、产物、权限和回滚步骤都检查过之后,才启用定时任务或 live 执行。
43-
44-
## 策略表现与证据边界
45-
46-
这不是策略仓库。质量标准是兼容性、校验覆盖和减少配置错误。
47-
48-
README 不应该承诺固定收益或过期指标。实际使用前,请重新运行对应测试、回测或流水线任务。
49-
50-
## 安全注意事项
51-
52-
- 不要把 API key、券商凭据、OAuth token、Cookie 或账户标识提交到 Git。
53-
- 新策略或平台变更在 live 前必须先跑 dry-run 或 paper 流程。
54-
- 启用定时任务前,需要人工检查生成的订单、产物和日志。
55-
56-
## 参与贡献
33+
## 延伸文档
5734

58-
请保持改动小、可复现,并用最小必要测试覆盖。涉及策略的改动,需要附上验证行为的证据产物或命令
35+
- 暂无独立 `docs/` 目录;请先阅读本 README 和 workflow 文件
5936

6037
## 许可证
6138

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

0 commit comments

Comments
 (0)