期货雷达

v1.0.0

期货与大宗商品行情监控工具。当用户询问「原油」「黄金」「白银」「天然气」「铜」「期货行情」「大宗商品」「WTI」「布伦特」「金银比」「油金比」时使用。使用 Yahoo Finance chart API 获取实时期货数据。

1· 67·0 current·0 all-time
byBear Xiong@gold3bear

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for gold3bear/futures-radar.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "期货雷达" (gold3bear/futures-radar) from ClawHub.
Skill page: https://clawhub.ai/gold3bear/futures-radar
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install futures-radar

ClawHub CLI

Package manager switcher

npx clawhub@latest install futures-radar
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
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.
Assessment
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.

Like a lobster shell, security has layers — review code before you run it.

latestvk9713vkrbxwd6hwmwvarh8fxxs85gps0
67downloads
1stars
1versions
Updated 2d ago
v1.0.0
MIT-0

期货雷达 (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 银相对便宜(均值),<50 金便宜
油金比CL/F ÷ (GC/F÷100)>2.5 通胀预期强,<1.5 避险情绪
金铜比GC/F ÷ HG/F经济预期(金强→衰退/避险,铜强→复苏)

情报解读框架

品种关键信号
WTI原油 > 100地缘风险/供应紧张,通胀压力
黄金 > 2000避险情绪浓厚
白银 < 22工业需求疲软
天然气 > 4能源危机/冬季需求
10年国债期货 > 114降息预期增强(债券涨)
10年国债期货 < 110利率上升预期(债券跌)
钯金 > 2000汽车行业需求强(芯片/电动车替代中)

分析顺序:

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

快速查询命令

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

# 查询全部期货品种
python futures_spot.py

Comments

Loading comments...