Files
MoFin/deploy/profile-scripts/regime_perf_daily.sh
T

17 lines
993 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
# regime_perf_daily.sh — 策略温区表现每日更新(A股+港股双市场)
# 2026-08-15 问题2:策略数据每日自动更新。hermes cron 只接受单脚本,双市场用本 wrapper。
# 顺序:period_rollup17:05 派生周期行)→ 本脚本(17:15 温区表现)
# 2026-08-15 追加:regime_perf_by_period.py(按周期预计算 1y/2y/5y/10y,数据加工层,server 读表)
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') by_period a"
/home/hmo/MoFin/venv/bin/python regime_perf_by_period.py --market=a --periods="1y 2y 5y 10y"
echo "[regime_perf_daily] $(date '+%F %T') by_period hk"
/home/hmo/MoFin/venv/bin/python regime_perf_by_period.py --market=hk --periods="1y 2y 5y 10y"
echo "[regime_perf_daily] $(date '+%F %T') done"