← Back to Skills Marketplace
gold3bear

汇率雷达

by Bear Xiong · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
62
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install fx-radar
Description
全球汇率监控工具。当用户询问「美元汇率」「人民币汇率」「港币汇率」「日元汇率」「欧元汇率」「英镑汇率」「美元兑人民币」「USD/CNY」「汇率」「外汇」「离岸人民币」「在岸人民币」「换汇」时使用。使用 Yahoo Finance 获取实时汇率数据。
README (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
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install fx-radar
  3. After installation, invoke the skill by name or use /fx-radar
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
首发:16个货币对、并发优化、关键比值解读
Metadata
Slug fx-radar
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 汇率雷达?

全球汇率监控工具。当用户询问「美元汇率」「人民币汇率」「港币汇率」「日元汇率」「欧元汇率」「英镑汇率」「美元兑人民币」「USD/CNY」「汇率」「外汇」「离岸人民币」「在岸人民币」「换汇」时使用。使用 Yahoo Finance 获取实时汇率数据。 It is an AI Agent Skill for Claude Code / OpenClaw, with 62 downloads so far.

How do I install 汇率雷达?

Run "/install fx-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