feat: automate after-market update and email delivery

This commit is contained in:
wanghep
2026-04-18 20:06:15 +08:00
parent 8c9117ca4c
commit dc205c5f1b
2 changed files with 128 additions and 0 deletions

View File

@ -48,6 +48,18 @@ python backend/scripts/init_db.py
python backend/scripts/run_api.py
```
4. 收盘后更新并发送邮件:
```powershell
python backend/scripts/after_market_update.py --trade-date 2026-04-17 --send-email
```
默认约定:
-`Asia/Shanghai` 取当天日期
- 预期定时为 A 股交易日 `17:00`
- 只有当日成功拉到新的龙虎榜数据才会继续生成预警、PDF 并发邮件;否则自动跳过
默认地址:
- `http://127.0.0.1:8000`