From b9b4fadf765ec5168148acbb2ec7786d0744e758 Mon Sep 17 00:00:00 2001 From: xxm Date: Sat, 15 Aug 2026 12:00:09 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20regime=5Fperf=5Fdaily=E5=8F=8C=E5=B8=82?= =?UTF-8?q?=E5=9C=BAwrapper+sync=E8=84=9A=E6=9C=AC=E8=A6=86=E7=9B=96.sh?= =?UTF-8?q?=E7=A1=AC=E9=93=BE=E2=80=94=E2=80=94=E7=AD=96=E7=95=A5=E6=B8=A9?= =?UTF-8?q?=E5=8C=BA=E8=A1=A8=E7=8E=B0=E6=AF=8F=E6=97=A517:15=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E6=9B=B4=E6=96=B0(hermes=20cron)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/profile-scripts/regime_perf_daily.sh | 11 +++++++++++ deploy/profile-scripts/sync_profile_scripts.sh | 3 ++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100755 deploy/profile-scripts/regime_perf_daily.sh diff --git a/deploy/profile-scripts/regime_perf_daily.sh b/deploy/profile-scripts/regime_perf_daily.sh new file mode 100755 index 00000000..e13585d8 --- /dev/null +++ b/deploy/profile-scripts/regime_perf_daily.sh @@ -0,0 +1,11 @@ +#!/bin/bash +# regime_perf_daily.sh — 策略温区表现每日更新(A股+港股双市场) +# 2026-08-15 问题2:策略数据每日自动更新。hermes cron 只接受单脚本,双市场用本 wrapper。 +# 顺序:period_rollup(17:05 派生周期行)→ 本脚本(17:15 温区表现) +set -u +cd /home/hmo/MoFin/deploy/profile-scripts +echo "[regime_perf_daily] $(date '+%F %T') market=a" +python3 regime_perf.py --market=a +echo "[regime_perf_daily] $(date '+%F %T') market=hk" +python3 regime_perf.py --market=hk +echo "[regime_perf_daily] $(date '+%F %T') done" diff --git a/deploy/profile-scripts/sync_profile_scripts.sh b/deploy/profile-scripts/sync_profile_scripts.sh index 7e2079a4..5c89d23b 100644 --- a/deploy/profile-scripts/sync_profile_scripts.sh +++ b/deploy/profile-scripts/sync_profile_scripts.sh @@ -5,7 +5,8 @@ set -e SRC="/home/hmo/MoFin/deploy/profile-scripts" DST="/home/hmo/.hermes/profiles/position-analyst/scripts" count=0 -for f in "$SRC"/*.py; do +for f in "$SRC"/*.py "$SRC"/*.sh; do + [ -e "$f" ] || continue name=$(basename "$f") ln -f "$f" "$DST/$name" count=$((count+1))