【背景】之前 dividend_alert.py 和 shell wrapper 在 ~/.hermes/scripts/ (本地) 不在 skill 仓库, SKILL.md 用 external: 引用. 修改不版本化. 【迁移】 - scripts/dividend_alert.py (13333 bytes) - scripts/dividend_alert_cn_hk.sh (proxychains4 + 过滤日志) - scripts/dividend_alert_us.sh - 删 ~/.hermes/scripts/* 三份旧副本 - cron jobs.json script 路径更新到 skill 仓库绝对路径 - 789a7710b1cf (A股+港股) → .../dividend-investing/scripts/dividend_alert_cn_hk.sh - 366934c1474c (美股) → .../dividend-investing/scripts/dividend_alert_us.sh 【SKILL.md 更新】 - scripts 段从 'external' 改为正常引用 - 路径从绝对 ~/.hermes/scripts 改为相对 scripts/ 【测试】cn_hk 脚本从新位置跑, 输出正确 (A股: 6 港股: 2), 无 [proxychains] 日志
13 lines
548 B
Bash
Executable File
13 lines
548 B
Bash
Executable File
#!/bin/bash
|
|
# 股息扫描 - A股 + 港股 (北京时间 11:00 跑)
|
|
# 用于 cron '股息登记日前一天提醒 - A股港股' (11:00 北京时间)
|
|
export LONGBRIDGE_HTTP_URL=https://openapi.longbridge.com
|
|
export LONGBRIDGE_REGION=ap
|
|
export LONGBRIDGE_TRADE_ENABLED=true
|
|
export PROXYCHAINS_CONF=/home/openclaw/.proxychains/proxychains.conf
|
|
|
|
# 跑 + 过滤 proxychains 调试日志 (保留正常输出)
|
|
proxychains4 -f ~/.proxychains/proxychains.conf \
|
|
python3 $(dirname $0)/dividend_alert.py --market cn_hk 2>&1 \
|
|
| grep -v '^\[proxychains\]'
|