← Back to Skills Marketplace
gold3bear

期货雷达

by Bear Xiong · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
85
Downloads
1
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install futures-radar
Description
期货与大宗商品行情监控工具。当用户询问「原油」「黄金」「白银」「天然气」「铜」「期货行情」「大宗商品」「WTI」「布伦特」「金银比」「油金比」时使用。使用 Yahoo Finance chart API 获取实时期货数据。
README (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 汽车行业需求强(芯片/电动车替代中)

分析顺序:

  1. 黄金 + 白银(避险/通胀主线)
  2. WTI + 布伦特(地缘/供给)
  3. 金银比(相对价值)
  4. 国债期货(利率预期→影响所有资产)
  5. 天然气 + 铜(实体经济需求)

快速查询命令

cd C:\Users\gold3\.openclaw\workspace\skills\futures-radar\scripts

# 查询全部期货品种
python futures_spot.py
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install futures-radar
  3. After installation, invoke the skill by name or use /futures-radar
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
首发:原油/黄金/白银/铜/天然气/农产品/国债期货
Metadata
Slug futures-radar
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 期货雷达?

期货与大宗商品行情监控工具。当用户询问「原油」「黄金」「白银」「天然气」「铜」「期货行情」「大宗商品」「WTI」「布伦特」「金银比」「油金比」时使用。使用 Yahoo Finance chart API 获取实时期货数据。 It is an AI Agent Skill for Claude Code / OpenClaw, with 85 downloads so far.

How do I install 期货雷达?

Run "/install futures-radar" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is 期货雷达 free?

Yes, 期货雷达 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does 期货雷达 support?

期货雷达 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created 期货雷达?

It is built and maintained by Bear Xiong (@gold3bear); the current version is v1.0.0.

💬 Comments