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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user