← 返回 Skills 市场
gold3bear

汇率雷达

作者 Bear Xiong · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
62
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install fx-radar
功能描述
全球汇率监控工具。当用户询问「美元汇率」「人民币汇率」「港币汇率」「日元汇率」「欧元汇率」「英镑汇率」「美元兑人民币」「USD/CNY」「汇率」「外汇」「离岸人民币」「在岸人民币」「换汇」时使用。使用 Yahoo Finance 获取实时汇率数据。
使用说明 (SKILL.md)

汇率雷达 (FX Radar)

覆盖品种

货币对 Yahoo代码 说明
美元/人民币 USDCNY=X USD/CNY
美元/港元 USDHKD=X USD/HKD
离岸人民币/港元 CNHHKD=X CNH/HKD
美元/日元 USDJPY=X USD/JPY
美元/瑞郎 USDCHF=X USD/CHF
美元/加元 USDCAD=X USD/CAD
欧元/美元 EURUSD=X EUR/USD
英镑/美元 GBPUSD=X GBP/USD
澳元/美元 AUDUSD=X AUD/USD
纽元/美元 NZDUSD=X NZD/USD
美元/离岸人民币 USDCNH=X USD/CNH

数据获取

import requests

FOREX_SYMBOLS = {
    "USDCNY=X": "USD/CNY 美元/在岸人民币",
    "USDHKD=X": "USD/HKD 美元/港元",
    "USDJPY=X": "USD/JPY 美元/日元",
    "EURUSD=X": "EUR/USD 欧元/美元",
    "GBPUSD=X": "GBP/USD 英镑/美元",
    "USDCHF=X": "USD/CHF 美元/瑞郎",
    "AUDUSD=X": "AUD/USD 澳元/美元",
    "NZDUSD=X": "NZD/USD 纽元/美元",
    "USDCNH=X": "USD/CNH 美元/离岸人民币",
}

def get_forex():
    results = {}
    for sym, name in FOREX_SYMBOLS.items():
        try:
            url = f"https://query2.finance.yahoo.com/v8/finance/chart/{sym}?interval=1d&range=1d"
            r = requests.get(url, headers={"User-Agent": "Mozilla/5.0"}, timeout=15)
            meta = r.json()["chart"]["result"][0]["meta"]
            price = meta["regularMarketPrice"]
            prev = meta["chartPreviousClose"]
            pct = (price - prev) / prev * 100
            results[sym] = {"name": name, "price": price, "chg": price-prev, "pct": pct}
        except Exception:
            pass
    return results

情报解读框架

货币对 关键阈值 信号
USD/CNY > 7.30 人民币贬值压力
USD/CNY \x3C 7.10 人民币偏强
USD/JPY > 150 日本干预风险
USD/JPY \x3C 145 日本央行容忍区间
EUR/USD > 1.10 欧元强势
EUR/USD \x3C 1.05 欧元弱势
USD/CNH vs USD/CNY CNH大幅强于CNY 资本管制收紧信号

分析顺序:

  1. 美元指数(DXY)方向 — 全球货币锚
  2. USD/CNY — 人民币核心价格
  3. USD/HKD — 港币联系汇率稳定
  4. USD/JPY — 日本央行政策信号
  5. EUR/GBP/AUD — 发达市场货币对比
  6. USD/CNH vs CNY利差 — 资本流动信号

快速查询命令

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

# 查询全部汇率
python fx_spot.py
安全使用建议
This skill appears coherent and limited to fetching public FX data. Before installing: (1) ensure your agent environment has Python and the 'requests' package available; (2) if you restrict outbound network access, allow query2.finance.yahoo.com and api.frankfurter.app; (3) remember it's third‑party code — run it in a sandbox or review the script yourself if you require extra assurance. Autonomous invocation is enabled by default (normal), but if you prefer manual control, disable autonomous invocation in the agent settings.
功能分析
Type: OpenClaw Skill Name: fx-radar Version: 1.0.0 The fx-radar skill bundle is a legitimate tool for monitoring global exchange rates. The Python script `scripts/fx_spot.py` fetches real-time data from Yahoo Finance and the European Central Bank (via api.frankfurter.app) and provides basic financial analysis. No indicators of data exfiltration, malicious execution, or prompt injection were found; a hardcoded local path in `SKILL.md` appears to be a non-malicious artifact of the developer's environment.
能力评估
Purpose & Capability
Name/description promise (global FX monitoring via Yahoo Finance) aligns with the included code: fx_spot.py queries Yahoo Finance and frankfurter.app for forex pairs and computes simple signals. No unrelated services, credentials, or system access are requested.
Instruction Scope
SKILL.md and the script only instruct the agent to fetch public API endpoints (query2.finance.yahoo.com and api.frankfurter.app) and render local analysis; they do not read system files, environment variables, or send data to unexpected endpoints.
Install Mechanism
This is instruction-only with a bundled script (no install spec). The script uses Python's requests and concurrent.futures; the skill does not declare a dependency on the requests package or a Python runtime. This is a packaging/operational omission rather than a security risk, but the runtime must provide Python and requests for the script to run.
Credentials
The skill requests no environment variables, no credentials, and accesses no config paths. All network calls are to the stated public data sources; there are no tokens or secrets involved.
Persistence & Privilege
always is false and the skill does not modify agent or system configuration, nor does it persist credentials. Autonomous invocation is allowed by default but is not combined with excessive privileges or broad credential access.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install fx-radar
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /fx-radar 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
首发:16个货币对、并发优化、关键比值解读
元数据
Slug fx-radar
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

汇率雷达 是什么?

全球汇率监控工具。当用户询问「美元汇率」「人民币汇率」「港币汇率」「日元汇率」「欧元汇率」「英镑汇率」「美元兑人民币」「USD/CNY」「汇率」「外汇」「离岸人民币」「在岸人民币」「换汇」时使用。使用 Yahoo Finance 获取实时汇率数据。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 62 次。

如何安装 汇率雷达?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install fx-radar」即可一键安装,无需额外配置。

汇率雷达 是免费的吗?

是的,汇率雷达 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

汇率雷达 支持哪些平台?

汇率雷达 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 汇率雷达?

由 Bear Xiong(@gold3bear)开发并维护,当前版本 v1.0.0。

💬 留言讨论