Files
myquant/.claude/skills/batch-sync.md
T
simonandClaude Opus 4.7 271a9343a5 Initial commit: cc-cursor 全链路量化研究平台
7 Sprints 全部完成:
  Sprint 0: 基础设施 (DataManager + MariaDB)
  Sprint 1: 因子引擎 (34因子/12分类)
  Sprint 2: VectorBT 回测 (5策略+截面)
  Sprint 3: Optuna 优化 (+Walk-Forward)
  Sprint 4: ML 模型 (LightGBM+CatBoost)
  Sprint 5: Qwen 情绪因子 (三源新闻+日期对齐)
  Sprint 6: Agent 系统 (4Agent+日报.md/.html)

生产加固 (15项): Tushare双源fallback, SSH自动恢复, pool_pre_ping,
  save_daily先删后插, load_dotenv绝对路径, 日报5d/20d修复,
  RiskAgent改上证指数, 昨日对比+数据截止, mac_report utf8mb4,
  CLAUDE-*.md 9条已知Bug, demo全参数化, djapi数据源归一化,
  indexDatas API修正

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-07 15:59:05 +08:00

27 lines
674 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# batch-sync skill
批量预热股票数据到 DB 缓存。
## 触发
用户说:预热缓存 / 同步数据 / warmup / batch sync / 补齐数据 / 全量同步
## 执行
```bash
cd finance && python cli/agent_cli.py warmup 50
```
## 说明
- 每批 50 只股票,依次执行 `dm.sync_daily()`
- 已缓存 + 最新的 → 0 条跳过(增量)
- 未缓存 → Tushare 优先 → AkShare fallback
- 范围由 `.env``SENTIMENT_SCOPE_TYPE` + `SENTIMENT_SCOPE_INDEXES` 决定(默认沪深300+中证500
- 可多次执行直到覆盖率 100%
## 参数
`python cli/agent_cli.py warmup [N]`
- N: 每批股票数,默认 50。网络稳定时可调大到 100