feat: regime_perf_daily双市场wrapper+sync脚本覆盖.sh硬链——策略温区表现每日17:15自动更新(hermes cron)

This commit is contained in:
xxm
2026-08-15 12:00:09 +08:00
parent c91f49ef87
commit b9b4fadf76
2 changed files with 13 additions and 1 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/bin/bash
# regime_perf_daily.sh — 策略温区表现每日更新(A股+港股双市场)
# 2026-08-15 问题2:策略数据每日自动更新。hermes cron 只接受单脚本,双市场用本 wrapper。
# 顺序:period_rollup17: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"
@@ -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))