← 返回 Skills 市场
期货雷达
作者
Bear Xiong
· GitHub ↗
· v1.0.0
· MIT-0
85
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install futures-radar
功能描述
期货与大宗商品行情监控工具。当用户询问「原油」「黄金」「白银」「天然气」「铜」「期货行情」「大宗商品」「WTI」「布伦特」「金银比」「油金比」时使用。使用 Yahoo Finance chart API 获取实时期货数据。
使用说明 (SKILL.md)
期货雷达 (Futures Radar)
覆盖品种
| 类别 | 品种 | 代码 | 单位 |
|---|---|---|---|
| 能源 | WTI原油 | CL=F | 桶 |
| 布伦特原油 | BZ=F | 桶 | |
| 天然气 | NG=F | 百万英热 | |
| 贵金属 | 黄金 | GC=F | 盎司 |
| 白银 | SI=F | 盎司 | |
| 铂金 | PL=F | 盎司 | |
| 钯金 | PA=F | 盎司 | |
| 基本金属 | 铜 | HG=F | 磅 |
| 农产品 | 玉米 | ZC=F | 蒲式耳 |
| 大豆 | ZS=F | 蒲式耳 | |
| 小麦 | ZW=F | 蒲式耳 | |
| 国债期货 | 10年国债 | ZN=F | 面值100 |
| 30年国债 | ZB=F | 面值100 |
数据获取
import requests
def get_quote(symbol):
"""获取期货行情(Yahoo Finance chart API)"""
url = f"https://query2.finance.yahoo.com/v8/finance/chart/{symbol}?interval=1d&range=1d"
headers = {"User-Agent": "Mozilla/5.0"}
r = requests.get(url, headers=headers, timeout=10)
meta = r.json()["chart"]["result"][0]["meta"]
price = meta["regularMarketPrice"]
prev = meta["chartPreviousClose"]
chg = price - prev
pct = chg / prev * 100
return {"price": price, "chg": chg, "pct": pct,
"high": meta["regularMarketDayHigh"],
"low": meta["regularMarketDayLow"]}
关键比价与信号
| 比价 | 公式 | 含义 |
|---|---|---|
| 金银比 | GC/F ÷ SI/F | >80 银相对便宜(均值),\x3C50 金便宜 |
| 油金比 | CL/F ÷ (GC/F÷100) | >2.5 通胀预期强,\x3C1.5 避险情绪 |
| 金铜比 | GC/F ÷ HG/F | 经济预期(金强→衰退/避险,铜强→复苏) |
情报解读框架
| 品种 | 关键信号 |
|---|---|
| WTI原油 > 100 | 地缘风险/供应紧张,通胀压力 |
| 黄金 > 2000 | 避险情绪浓厚 |
| 白银 \x3C 22 | 工业需求疲软 |
| 天然气 > 4 | 能源危机/冬季需求 |
| 10年国债期货 > 114 | 降息预期增强(债券涨) |
| 10年国债期货 \x3C 110 | 利率上升预期(债券跌) |
| 钯金 > 2000 | 汽车行业需求强(芯片/电动车替代中) |
分析顺序:
- 黄金 + 白银(避险/通胀主线)
- WTI + 布伦特(地缘/供给)
- 金银比(相对价值)
- 国债期货(利率预期→影响所有资产)
- 天然气 + 铜(实体经济需求)
快速查询命令
cd C:\Users\gold3\.openclaw\workspace\skills\futures-radar\scripts
# 查询全部期货品种
python futures_spot.py
安全使用建议
This skill appears to do what it claims: it makes outbound HTTPS requests to Yahoo Finance to fetch quoted data and prints local analyses. Before installing, note: (1) the skill requires Python and the 'requests' package to run—there's no installer included; (2) the SKILL.md contains a hardcoded example path (C:\Users\gold3\...) which is just an example and should be ignored or adjusted to your environment; (3) the skill performs network calls to query Yahoo Finance (no credentials are sent), so ensure your environment policy allows outbound HTTPS to query2.finance.yahoo.com; (4) unofficial use of Yahoo endpoints may be subject to rate limits or change by the provider. If you need higher assurances, request the publisher to provide a requirements.txt or explicit install instructions and confirm they do not require any secrets.
功能分析
Type: OpenClaw Skill
Name: futures-radar
Version: 1.0.0
The skill bundle is a legitimate tool for monitoring commodity and futures prices using the Yahoo Finance API. The Python script (scripts/futures_spot.py) fetches market data and calculates financial ratios without any evidence of data exfiltration, malicious execution, or unauthorized access. A hardcoded local path in SKILL.md (C:\Users\gold3\...) appears to be a non-malicious developer artifact rather than a targeted attack.
能力评估
Purpose & Capability
Name/description match the included Python script and SKILL.md: both fetch symbols from Yahoo Finance chart API and compute ratios/alerts. There are no unrelated credentials, binaries, or services requested.
Instruction Scope
Instructions and the script only call Yahoo Finance (query2.finance.yahoo.com) and print local analysis. They do not read other files or env vars. Minor note: SKILL.md includes an example absolute Windows path (C:\Users\gold3\...) which appears to be a leftover example and is not required for operation.
Install Mechanism
No install spec included (instruction-only with a bundled script). Nothing is downloaded or written to disk by an installer. The script depends on the Python 'requests' library but no installer is provided.
Credentials
The skill requests no environment variables, no credentials, and no config paths. The output and behavior align with a read-only data fetcher using a public API.
Persistence & Privilege
always:false and default invocation settings are used. The skill does not modify other skills or system settings and does not request permanent elevated presence.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install futures-radar - 安装完成后,直接呼叫该 Skill 的名称或使用
/futures-radar触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
首发:原油/黄金/白银/铜/天然气/农产品/国债期货
元数据
常见问题
期货雷达 是什么?
期货与大宗商品行情监控工具。当用户询问「原油」「黄金」「白银」「天然气」「铜」「期货行情」「大宗商品」「WTI」「布伦特」「金银比」「油金比」时使用。使用 Yahoo Finance chart API 获取实时期货数据。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 85 次。
如何安装 期货雷达?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install futures-radar」即可一键安装,无需额外配置。
期货雷达 是免费的吗?
是的,期货雷达 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
期货雷达 支持哪些平台?
期货雷达 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 期货雷达?
由 Bear Xiong(@gold3bear)开发并维护,当前版本 v1.0.0。
推荐 Skills