Install
openclaw skills install etf-monitorETF 波动监控 - 实时跟踪 ETF 涨跌幅,超过阈值自动告警
openclaw skills install etf-monitor实时监控 ETF 价格波动,超过设定阈值时自动告警。
python3 /root/.openclaw/workspace/skills/etf-monitor.py
无告警时:
{"alerts": []}
有告警时:
{
"alerts": [
{
"code": "159985",
"name": "豆粕 ETF",
"current": 1.234,
"percent": 1.5,
"direction": "📈"
}
]
}
编辑脚本中的 ETF_LIST:
ETF_LIST = [
("sz159985", "159985", "豆粕 ETF"),
("sz159792", "159792", "港股通互联网 ETF"),
("sh515220", "515220", "煤炭 ETF"),
# 添加更多 ETF...
]
THRESHOLD = 1.0 # 波动阈值 1%
每 5 分钟检查一次:
*/5 * * * * python3 /root/.openclaw/workspace/skills/etf-monitor.py
sz + 6 位代码(如 sz159985)sh + 6 位代码(如 sh515220)版本: v5
最后更新: 2026-03-18