chore: tighten gitignore and add .env.example for GitHub

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
qq564020069
2026-07-10 09:20:32 +08:00
co-authored by Cursor
parent 0d09ed1ab6
commit 0e255fae26
2 changed files with 16 additions and 2 deletions
+9
View File
@@ -0,0 +1,9 @@
# 复制为 .env 并填入真实值(.env 已在 .gitignore 中,不会上传 GitHub)
#
# MT5 实盘 / 数据拉取(run.py、live_trade.py、download_full_history.py 等)
MT5_LOGIN=12345678
MT5_PASSWORD=your_password_here
MT5_SERVER=YourBroker-Demo
# 可选:加密数据管线遗留配置(仅 data_pipeline 使用 Birdeye 时需要)
# BIRDEYE_API_KEY=
+7 -2
View File
@@ -46,6 +46,7 @@ ENV/
# Testing
.pytest_cache/
.hypothesis/
.coverage
htmlcov/
.tox/
@@ -74,9 +75,10 @@ strategies/*_progress.txt
strategies/best_forex_smoke.json
strategies/best_group_forex_smoke.json
# ── 回测输出(图表与报告)──────────────────────────────────────────
# ── 回测/验证输出(图表、报告、可再生产物)────────────────────────
backtest_output/
backtest_output_*/
verification_results.json
# ── 实盘/运行态文件 ────────────────────────────────────────────────
portfolio_state.json
@@ -87,9 +89,12 @@ train_stderr.log
*.log
logs/
# ── 本地数据缓存 ───────────────────────────────────────────────────
# ── 本地数据缓存(体积大,机器相关)──────────────────────────────
data/
!data_pipeline/
data/cache/
**/kline_cache/
*.parquet
*.hcc
*.hc