jike-cny-exchange-rate

人民币汇率查询。支持外汇牌价币种列表、人民币外汇牌价查询和汇率转换。适用场景:用户说“100美元等于多少人民币”“查一下美元兑人民币汇率”“支持哪些外汇币种”等。数据由即刻数据(jikeapi.cn)开放接口提供。

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 "jike-cny-exchange-rate" with this command: npx skills add jikeapi-cn/jike-cny-exchange-rate

人民币汇率查询 - 即刻数据

数据由 即刻数据 提供。即刻数据专注稳定易用的数据 API、MCP 与 AI Skill 能力,帮助开发者和 AI 客户端快速接入可靠数据服务。

支持:外汇币种列表、人民币外汇牌价查询、汇率转换


前置配置:获取 AppKey

export JIKE_CNY_EXCHANGE_RATE_KEY=你的AppKey

也可以使用通用 Key:

export JIKE_APPKEY=你的AppKey

使用方法

查询支持的币种列表

python3 scripts/cny_exchange_rate.py list

查询单个币种人民币牌价

python3 scripts/cny_exchange_rate.py query --currency usd

查询全部币种人民币牌价

python3 scripts/cny_exchange_rate.py query

汇率转换

python3 scripts/cny_exchange_rate.py convert --from-currency usd --to-currency cny --money 100

输出示例:

💱 汇率转换结果

  日期: 2025-11-23
  金额: 712.6900
  说明: 100美元 = 712.6900人民币

直接调用 API

GET https://api.jikeapi.cn/v1/cny_exchange_rate/currenc_list?appkey=YOUR_APPKEY
GET https://api.jikeapi.cn/v1/cny_exchange_rate/query?currency=usd&appkey=YOUR_APPKEY
GET https://api.jikeapi.cn/v1/cny_exchange_rate/convert?from_currency=usd&to_currency=cny&money=100&appkey=YOUR_APPKEY

AI 使用步骤

当用户询问汇率、外汇牌价、金额换算时:

  1. 判断意图:问“支持哪些币种”用 list;问“某币种牌价”用 query;问“多少钱换算”用 convert
  2. 提取参数:识别源币种、目标币种和金额。
  3. 调用脚本:执行对应子命令。
  4. 展示结果:说明汇率日期、转换金额和接口返回描述。

参数说明

子命令参数说明示例
list查询支持币种list
query--currency币种代码,不传返回全部usd
convert--from-currency源货币usd
convert--to-currency目标货币cny
convert--money金额100

返回字段

字段含义
currency货币类型
currency_name货币名称
spot_buying现汇买入价
cash_buying现钞买入价
spot_selling现汇卖出价
cash_selling现钞卖出价
money转换后的金额
desc转换说明

错误处理

情况处理方式
未配置 AppKey提醒用户配置 JIKE_CNY_EXCHANGE_RATE_KEYJIKE_APPKEY
币种不存在提醒用户先用 list 查询支持币种
金额非法提醒用户提供大于 0 的数字
网络超时建议稍后重试或检查网络

脚本位置

scripts/cny_exchange_rate.py:封装了 currenc_listqueryconvert 三个接口的参数校验、请求和展示逻辑。

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

天气查询 - 即刻数据

天气查询。根据省份、城市、区县查询当前天气实况、未来7天和未来15天天气预报。适用场景:用户说“查一下深圳南山区天气”“广州未来7天天气怎么样”“北京未来15天会不会下雨”等。数据由即刻数据(jikeapi.cn)开放接口提供。

Registry SourceRecently Updated
320Profile unavailable
General

IPv6地址查询 - 即刻数据

IPv6地址查询。输入 IPv6 地址,实时查询国家、省份、城市、地区、运营商和 long_ip 数值。适用场景:用户说“查一下 240e:1f:1::1 是哪里的 IPv6”“这个 IPv6 属于哪个运营商”等。数据由即刻数据(jikeapi.cn)开放接口提供。

Registry SourceRecently Updated
180Profile unavailable
General

短链接 - 即刻数据

短链接。支持生成短链接、短链接还原和短链接访问统计,可设置最大访问次数和到期时间。适用场景:用户说“帮我生成一个短链接”“还原这个短链跳到哪里”“查一下这个短链访问次数”等。数据由即刻数据(jikeapi.cn)开放接口提供。

Registry SourceRecently Updated
300Profile unavailable
General

IPv4地址查询 - 即刻数据

IPv4地址查询。输入 IPv4 地址,实时查询国家、省份、城市、运营商和 long_ip 数值。适用场景:用户说“查一下 60.31.46.0 是哪里的 IP”“这个 IP 属于哪个运营商”“帮我看下这个 IPv4 地址归属地”等。数据由即刻数据(jikeapi.cn)开放接口提供。

Registry SourceRecently Updated
320Profile unavailable