Files

17 lines
1.1 KiB
Bash
Executable File
Raw Permalink 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="1m 6m 1y 2y 5y 10y" # 2026-08-18 加1m/6m切窗(老莫反馈切换周期数据无差异)
echo "[regime_perf_daily] $(date '+%F %T') by_period hk"
/home/hmo/MoFin/venv/bin/python regime_perf_by_period.py --market=hk --periods="1m 6m 1y 2y 5y 10y" # 2026-08-18 港股同样加1m/6m(老莫:港股也需要短周期)
echo "[regime_perf_daily] $(date '+%F %T') done"