汇率雷达

v1.0.0

全球汇率监控工具。当用户询问「美元汇率」「人民币汇率」「港币汇率」「日元汇率」「欧元汇率」「英镑汇率」「美元兑人民币」「USD/CNY」「汇率」「外汇」「离岸人民币」「在岸人民币」「换汇」时使用。使用 Yahoo Finance 获取实时汇率数据。

0· 51·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/fx-radar.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "汇率雷达" (gold3bear/fx-radar) from ClawHub.
Skill page: https://clawhub.ai/gold3bear/fx-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 fx-radar

ClawHub CLI

Package manager switcher

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

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

latestvk976t8v481hg5net4f969h4c8h85hha3
51downloads
0stars
1versions
Updated 2d ago
v1.0.0
MIT-0

汇率雷达 (FX Radar)

覆盖品种

货币对Yahoo代码说明
美元/人民币USDCNY=XUSD/CNY
美元/港元USDHKD=XUSD/HKD
离岸人民币/港元CNHHKD=XCNH/HKD
美元/日元USDJPY=XUSD/JPY
美元/瑞郎USDCHF=XUSD/CHF
美元/加元USDCAD=XUSD/CAD
欧元/美元EURUSD=XEUR/USD
英镑/美元GBPUSD=XGBP/USD
澳元/美元AUDUSD=XAUD/USD
纽元/美元NZDUSD=XNZD/USD
美元/离岸人民币USDCNH=XUSD/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< 7.10人民币偏强
USD/JPY> 150日本干预风险
USD/JPY< 145日本央行容忍区间
EUR/USD> 1.10欧元强势
EUR/USD< 1.05欧元弱势
USD/CNH vs USD/CNYCNH大幅强于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

Comments

Loading comments...