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:
dekun
2026-10-27 11:25:44 +08:00
parent 828038a5ae
commit 75b9bffe96
13 changed files with 582 additions and 5 deletions
+9
View File
@@ -40,4 +40,13 @@ def create_app() -> Flask:
init_db()
seed_if_empty()
register_routes(app)
# 企业微信 23:00 日报(daemon 线程;多 worker 靠锁文件去重)
try:
from app.scheduler import start_background_jobs
start_background_jobs()
except Exception: # noqa: BLE001
pass
return app