From 91386530ee6cd47819b7b95de6ef37b9acf82da4 Mon Sep 17 00:00:00 2001 From: xxm Date: Fri, 21 Aug 2026 20:33:12 +0800 Subject: [PATCH] =?UTF-8?q?feat(market=5Fwatch):=20=E6=8E=A5=E5=85=A5messe?= =?UTF-8?q?nger=E2=80=94=E2=80=94=E6=B8=A9=E5=8C=BA=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E8=B5=B0broadcast=E9=80=9A=E9=81=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/profile-scripts/market_watch.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/deploy/profile-scripts/market_watch.py b/deploy/profile-scripts/market_watch.py index 766ffa86..95002ee1 100644 --- a/deploy/profile-scripts/market_watch.py +++ b/deploy/profile-scripts/market_watch.py @@ -17,6 +17,7 @@ from datetime import datetime from pathlib import Path from mofin_db import get_conn, init_all_tables, write_market_snapshot +from messenger import send as messenger_send DATA_DIR = Path(__file__).parent.parent / "data" @@ -256,6 +257,10 @@ def main(): _regime = _mr.compute_regime() if _regime: _mr.save_regime(_regime) + try: + messenger_send(title="MoFin温区更新", content=f"市场温度: {_regime['regime']} (above_ma20={_regime['above_ma20']} adx={_regime['adx']})", source="market_watch.py") + except Exception: + pass print(f"[regime] {_regime['date']} → {_regime['regime']} " f"(above_ma20={_regime['above_ma20']} adx={_regime['adx']})", flush=True) else: