Commit Graph
2 Commits
Author SHA1 Message Date
mike 80063a1cac feat: 迁移 trading scripts 第3批 (scan_*/dca_scanner + 清理)
【迁移】
- dividend-scanner/scripts/scan_cn.sh 改 cd 路径 (原来硬编码 /home/openclaw/scripts)
- dividend-scanner/scripts/scan_hk.sh / scan_us.sh 同改
- dividend-scanner/scripts/dca_scanner.py (scan_hk/us 调它)
- 删除本地 ~/.hermes/scripts/{scan_cn,scan_hk,scan_us,scan_cn.py,dca_scanner}.*

【cron 路径】
- 84c46e13 (港股高息扫描) → dividend-scanner/scripts/scan_hk.sh
- 89a3e7a6 (美股高息扫描) → dividend-scanner/scripts/scan_us.sh
- 5d62894c (A股高息扫描) → dividend-scanner/scripts/scan_cn.sh

【清理】git rm --cached lottery-hk/scripts/__pycache__/lottery.cpython-311.pyc (不该 commit 编译产物)
+ .gitignore 加 __pycache__/

【保留本地 ~/.hermes/scripts/】(非 trading)
- analyze_cmb.sh / memory_check.sh / sync_qdrant_memory.sh / cleanup_disk.sh (Hermes 平台工具)
- hk_set_sl_now.sh / okx_trade.sh / merge_hype_shorts.sh / rgti_*.py (一次性工具)
- longbridge_hosts_*.sh / update_longbridge_token.sh (长桥 host 维护)
- ths_query.py / intraday_cost_check.py / lottery_analyze.sh / lb_test.py
- check-gateway-health.sh / clear-telegram-session.sh / mcp_auth_helper.py / mihomo_watchdog.sh / push_to_qq.sh / verify_lb_token.py
- stocks/, crypto/ (子目录, 工具集合)
- dca_positions.json / rgti_alert_state.json / rgti_t_state.json (数据文件)

【未迁移】crypto/ stocks/ 子目录 (待清理, 不紧急)
【测试】scan_cn.sh 从新位置跑通
2026-07-24 11:44:22 +08:00
mike 913d1945d4 feat: 迁移 trading 相关脚本到 skill 仓库 (第2批: 🟡 中优先级)
【迁移内容】
- dividend-investing/scripts/dca_monitor.py + dca_monitor_us.sh
- dividend-scanner/scripts/scan_cn.{py,sh} + scan_hk.sh + scan_us.sh
- okx-auto-position/scripts/signal_queue_retry.sh
- lottery-hk/scripts/verify_lottery.sh
- longbridge-cli/scripts/longport_http.py (公共模块)

【配套修改】
- 5 个 cron 任务 script 路径更新 (jobs.json):
  - 8929ca09 (DCA港股上午) → dividend-investing/scripts/dca_monitor.py
  - 9469c128 (DCA港股下午) → dividend-investing/scripts/dca_monitor.py
  - 3a4bef2c (DCA美股凌晨) → dividend-investing/scripts/dca_monitor_us.sh
  - a82a3ab0 (signal-queue-retry) → okx-auto-position/scripts/
  - b4868849 (lottery-verify-result) → lottery-hk/scripts/

【删除】本地 ~/.hermes/scripts/{dca_monitor,scan_*,signal_queue_retry,verify_lottery,longport_http}
【未迁移】scan_cn/hk/us 仍需挂 cron, 暂不删 (走 scanner skill)
2026-07-24 11:42:13 +08:00