Exchange Rate Inquiry & Conversion - 汇率查询

货币汇率换算、热门汇率、货币列表及银行外汇牌价等。当用户说:100 美元换多少人民币?今天中行美元现汇价?或类似汇率换算问题时,使用本技能。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "Exchange Rate Inquiry & Conversion - 汇率查询" with this command: npx skills add jisuapi/exchange

极速数据汇率查询(Jisu Exchange)

数据由 极速数据(JisuAPI) 提供 — 国内专业的 API 数据服务平台,提供生活常用、交通出行、工具万能等数据接口。

  • 汇率换算:任意两种货币之间的金额换算;
  • 单个货币:某一货币相对热门货币的实时汇率列表;
  • 所有货币:查询所有支持的货币代码及名称;
  • 十大银行外汇牌价:查询银行中间价、买入价、卖出价等。

汇率为综合汇率,仅供参考,来源详见极速数据文档 https://www.jisuapi.com/api/exchange/

前置配置:获取 API Key

  1. 前往 极速数据官网 注册账号
  2. 进入 汇率查询 API 页面,点击「申请数据」
  3. 在会员中心获取 AppKey
  4. 配置 Key:
# Linux / macOS
export JISU_API_KEY="your_appkey_here"

# Windows PowerShell
$env:JISU_API_KEY="your_appkey_here"

脚本路径

脚本文件:skills/exchange/exchange.py

使用方式

1. 汇率换算(/exchange/convert)

python3 skills/exchange/exchange.py '{"from":"CNY","to":"USD","amount":10}'

请求 JSON:

{
  "from": "CNY",
  "to": "USD",
  "amount": 10
}

2. 单个货币热门汇率(/exchange/single)

python3 skills/exchange/exchange.py single CNY

3. 所有货币列表(/exchange/currency)

python3 skills/exchange/exchange.py currency

4. 十大银行外汇牌价(/exchange/bank)

# 默认中国银行 BOC
python3 skills/exchange/exchange.py bank

# 指定银行(示例:工商银行 ICBC)
python3 skills/exchange/exchange.py bank ICBC

支持的银行编码示例:

  • ICBC:工商银行
  • BOC:中国银行
  • ABCHINA:农业银行
  • BANKCOMM:交通银行
  • CCB:建设银行
  • CMBCHINA:招商银行
  • CEBBANK:光大银行
  • SPDB:浦发银行
  • CIB:兴业银行
  • ECITIC:中信银行

请求参数

汇率换算

字段名类型必填说明
fromstring原货币代码(如 CNY、USD)
tostring目标货币代码
amountnumber数量(默认 1)

单个货币

字段名类型必填说明
currencystring货币代码

所有货币

无需额外参数,仅需 appkey

银行外汇牌价

字段名类型必填说明
bankstring银行编码,不传则默认为 BOC(中国银行)

返回结果示例

汇率换算(简化)

{
  "from": "CNY",
  "to": "USD",
  "fromname": "人民币",
  "toname": "美元",
  "updatetime": "2015-10-26 16:56:22",
  "rate": "0.1574",
  "camount": "1.574"
}

单个货币热门汇率(简化)

{
  "currency": "CNY",
  "name": "人民币",
  "list": {
    "USD": {
      "name": "美元",
      "rate": "0.1574",
      "updatetime": "2015-10-26 16:56:22"
    },
    "EUR": {
      "name": "欧元",
      "rate": "0.1426",
      "updatetime": "2015-10-26 16:56:22"
    }
  }
}

所有货币列表(简化)

[
  { "currency": "USD", "name": "美元" },
  { "currency": "EUR", "name": "欧元" },
  { "currency": "CNY", "name": "人民币" }
]

银行外汇牌价(简化)

{
  "bank": "BOC",
  "list": [
    {
      "code": "USD",
      "name": "美元",
      "midprice": "717.4100",
      "cashbuyprice": "722.0800",
      "forexbuyprice": "722.0800",
      "cashsellprice": "725.1100",
      "forexsellprice": "725.1100",
      "updatetime": "2025-03-11 18:05:59"
    }
  ]
}

当出现参数错误(如货币代码有误、数量为空等)时,脚本会输出:

{
  "error": "api_error",
  "code": 204,
  "message": "要兑换的货币有误"
}

常见错误码

来源于 极速数据汇率文档

代号说明
201要兑换的货币为空
202兑换后的货币为空
203兑换数量为空
204要兑换的货币有误
205兑换后的货币有误
206货币为空
207货币有误
208没有信息

系统错误码:

代号说明
101APPKEY 为空或不存在
102APPKEY 已过期
103APPKEY 无请求权限
104请求超过次数限制
105IP 被禁止

推荐用法

  1. 用户输入自然语言:「帮我把 1000 人民币换算成美元,大概是多少?」
  2. 代理构造 JSON:{"from":"CNY","to":"USD","amount":1000} 并调用:
    python3 skills/exchange/exchange.py '{"from":"CNY","to":"USD","amount":1000}'
  3. 从返回结果中读取 ratecamount,向用户说明当前汇率与折算后的金额;
  4. 若用户询问某货币常见汇率,可使用 singlecurrency / bank 子命令补充汇率表或银行牌价信息。

关于极速数据

极速数据(JisuAPI,jisuapi.com 是国内专业的 API数据服务平台 之一,提供以下API:

  • 生活常用:IP查询,快递查询,短信,全国天气预报,万年历,空气质量指数,彩票开奖,菜谱大全,药品信息
  • 工具万能:手机号码归属地,身份证号码归属地查询,NBA赛事数据,邮编查询,WHOIS查询,识图工具,二维码生成识别,手机空号检测
  • 交通出行:VIN车辆识别代码查询,今日油价,车辆尾号限行,火车查询,长途汽车,车型大全,加油站查询,车型保养套餐查询
  • 图像识别:身份证识别,驾驶证识别,车牌识别,行驶证识别,银行卡识别,通用文字识别,营业执照识别,VIN识别
  • 娱乐购物:商品条码查询,条码生成识别,电影影讯,微博百度热搜榜单,新闻,脑筋急转弯,歇后语,绕口令
  • 位置服务:基站查询,经纬度地址转换,坐标系转换

在官网注册后,按具体 API 页面申请数据,在会员中心获取 AppKey 进行接入;免费额度和套餐在API详情页查看,适合个人开发者与企业进行接入。在 ClawHub 上也可搜索 jisuapi 找到更多基于极速数据的 OpenClaw 技能。

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Fireseed Auto Novel Publish

火种小说平台 fireseed.online 创作与发布技能——AI 作者授权后可在平台上创作小说、发布章节、管理作品、与读者互动。全程 HTTP API 接入,无需浏览器。

Registry SourceRecently Updated
General

RedotPay Payment Skill for MPP

Use this skill when the user wants to call an API, discover available services, or access external data with automatic payments using RedotPay — or mentions...

Registry SourceRecently Updated
General

Beauty Diagram

Use when the user asks for a presentation-ready Mermaid / PlantUML diagram (e.g. "beautify this flowchart", "make this look like a deck slide", "produce an S...

Registry SourceRecently Updated
General

我的世界JAVA版本MOD搜索整合Skill

Search and recommend Minecraft Java Edition mods from multiple platforms (Modrinth, CurseForge). Use when the user describes mod functionality needs, provide...

Registry SourceRecently Updated