Add auto break-even toggle and WeCom hub notifications.
Desktop can auto-pull stop to open+/-1 after a 3$ favorable move; hub pushes open/close events and a 23:00 BJT daily summary via webhook. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+8
-1
@@ -137,7 +137,14 @@ Header:`X-Device-Token`
|
||||
|
||||
开仓/平仓成功返回 `(消息, report_dict)`,后台线程上报 trades + 四周期 bars。
|
||||
|
||||
## 9. 后续扩展(规划)
|
||||
## 9. 企业微信推送
|
||||
|
||||
- 模块:`app/wecom.py`(Webhook 文本消息);`app/scheduler.py`(北京时间日报,默认 23:00)
|
||||
- 配置:网页系统设置(管理员)或 `.env` 的 `WECOM_WEBHOOK_URL` / `WECOM_DAILY_HOUR`
|
||||
- 触发:`POST /api/v1/trades` 且 `snapshot.event` 为 `open` / `close` / `history_close`(浮盈与改单不推)
|
||||
- 多 worker:日报用 `data/wecom_daily_YYYY-MM-DD.sent` 锁文件去重
|
||||
|
||||
## 10. 后续扩展(规划)
|
||||
|
||||
- 复盘筛选、统计面板、AI 点评(可对齐 crypto_monitor)
|
||||
- PostgreSQL 替换 SQLite(多写高并发时)
|
||||
|
||||
Reference in New Issue
Block a user