← Back to Skills Marketplace
jisuapi

Gold Price Inquiry - 黄金价格查询

by 极速数据 · GitHub ↗ · v1.0.13 · MIT-0
cross-platform ✓ Security Clean
1199
Downloads
11
Stars
4
Active Installs
14
Versions
Install in OpenClaw
/install gold
Description
查询上金所、上期所、港金、银行渠道、伦敦金银及品牌金店等多源黄金参考价;涨跌字段可辅助说明走势(非投资建议)。当用户说:今天黄金多少钱一克?银行金条什么价?周大福金价?伦敦金走势怎样?或类似金价问题时,使用本技能。
README (SKILL.md)

\r \r

国内金价查询 · 极速数据黄金(Gold)\r

\r

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

何时使用本技能(触发条件)\r

\r 当用户询问以下任一主题时,应触发本技能:\r \r

  • 金价黄金价格今日金价现在黄金多少钱\r
  • 金店价格品牌金价(如周大福、老凤祥等零售价)\r
  • 银行金条银行黄金账户金纸黄金(对应接口:银行账户黄金等)\r
  • 国际金价伦敦金伦敦银外盘黄金\r
  • 黄金走势金价涨跌未来趋势后市怎么看(基于返回的涨跌幅、开高低收等作说明,勿编造未在数据中出现的结论)\r \r 技术前提: 使用脚本 skills/gold/gold.py,配置环境变量 JISU_API_KEY。\r \r 接口与数据范围:\r \r
  • 上海黄金交易所价格/gold/shgold)\r
  • 上海期货交易所价格/gold/shfutures)\r
  • 香港金银业贸易场价格/gold/hkgold)\r
  • 银行账户黄金价格/gold/bank)\r
  • 伦敦金、银价格/gold/london)\r
  • 金店金价/gold/storegold)\r \r

前置配置:获取 API Key\r

\r

  1. 前往 极速数据官网 注册账号\r
  2. 进入 黄金价格 API 页面,点击「申请数据」\r
  3. 在会员中心获取 AppKey\r
  4. 配置 Key:\r \r \r
# Linux / macOS\r
export JISU_API_KEY="your_appkey_here"\r
\r
# Windows PowerShell\r
$env:JISU_API_KEY="your_appkey_here"\r
```\r
\r
## 脚本路径\r
\r
脚本文件:`skills/gold/gold.py`\r
\r
## 使用方式\r
\r
### 1. 上海黄金交易所价格(/gold/shgold)\r
\r
```bash\r
python3 skills/gold/gold.py shgold\r
```\r
\r
### 2. 上海期货交易所价格(/gold/shfutures)\r
\r
```bash\r
python3 skills/gold/gold.py shfutures\r
```\r
\r
### 3. 香港金银业贸易场价格(/gold/hkgold)\r
\r
```bash\r
python3 skills/gold/gold.py hkgold\r
```\r
\r
### 4. 银行账户黄金价格(/gold/bank)\r
\r
```bash\r
python3 skills/gold/gold.py bank\r
```\r
\r
### 5. 伦敦金、银价格(/gold/london)\r
\r
```bash\r
python3 skills/gold/gold.py london\r
```\r
\r
### 6. 金店金价(/gold/storegold)\r
\r
```bash\r
# 不指定日期:默认当天(仅支持最近 7 天)\r
python3 skills/gold/gold.py storegold\r
\r
# 指定日期:\r
python3 skills/gold/gold.py storegold '{"date":"2023-09-20"}'\r
```\r
\r
请求 JSON(仅 `storegold` 支持):\r
\r
```json\r
{\r
  "date": "2023-09-20"\r
}\r
```\r
\r
## 返回结果示例(节选)\r
\r
### 上海黄金交易所价格\r
\r
```json\r
[\r
  {\r
    "type": "Au(T+D)",\r
    "typename": "黄金延期",\r
    "price": "238.05",\r
    "openingprice": "241.00",\r
    "maxprice": "241.50",\r
    "minprice": "237.50",\r
    "changepercent": "-0.90%",\r
    "lastclosingprice": "240.22",\r
    "tradeamount": "45998.0000",\r
    "updatetime": "2015-10-26 15:29:13"\r
  }\r
]\r
```\r
\r
### 上海期货交易所价格\r
\r
```json\r
[\r
  {\r
    "type": "AU1512",\r
    "typename": "黄金1512",\r
    "price": "238.7",\r
    "changequantity": "-0.949",\r
    "buyprice": "238.7",\r
    "buyamount": "5",\r
    "sellprice": "238.75",\r
    "sellamount": "100",\r
    "tradeamount": "210274",\r
    "openingprice": "241.5",\r
    "lastclosingprice": "239.649",\r
    "maxprice": "241.5",\r
    "minprice": "237.799",\r
    "holdamount": "188302",\r
    "increaseamount": "-6086"\r
  }\r
]\r
```\r
\r
### 银行账户黄金价格\r
\r
```json\r
[\r
  {\r
    "typename": "人民币黄金",\r
    "midprice": "408.92",\r
    "buyprice": "408.67",\r
    "sellprice": "409.17",\r
    "maxprice": "409.16",\r
    "minprice": "407.58",\r
    "updatetime": "2020-07-21 12:19:54"\r
  }\r
]\r
```\r
\r
### 伦敦金、银价格\r
\r
```json\r
[\r
  {\r
    "type": "伦敦金",\r
    "price": "1818.6899",\r
    "changepercent": "+0.05%",\r
    "changequantity": "+0.9199",\r
    "openingprice": "1817.95",\r
    "maxprice": "1820.29",\r
    "minprice": "1815.8199",\r
    "lastclosingprice": "1817.77",\r
    "updatetime": "2020-07-21 12:23:35"\r
  }\r
]\r
```\r
\r
### 金店金价\r
\r
```json\r
{\r
  "list": [\r
    {\r
      "store_name": "周大福",\r
      "date": "2023-09-20",\r
      "gold": "612.00",\r
      "platinum": "387.00",\r
      "goldbar": "602.00",\r
      "jewelry": "612.00",\r
      "solid_gold": null\r
    }\r
  ]\r
}\r
```\r
\r
当无数据时,脚本会输出:\r
\r
```json\r
{\r
  "error": "api_error",\r
  "code": 201,\r
  "message": "没有信息"\r
}\r
```\r
\r
## 常见错误码\r
\r
来源于 [极速数据黄金文档](https://www.jisuapi.com/api/gold/):\r
\r
| 代号 | 说明     |\r
|------|----------|\r
| 201  | 没有信息 |\r
\r
系统错误码:\r
\r
| 代号 | 说明                 |\r
|------|----------------------|\r
| 101  | APPKEY 为空或不存在  |\r
| 102  | APPKEY 已过期        |\r
| 103  | APPKEY 无请求权限    |\r
| 104  | 请求超过次数限制     |\r
| 105  | IP 被禁止            |\r
\r
## 推荐用法\r
\r
1. **比价类**:用户问「现在黄金价格大概是多少?上海金交所和金店各多少?」  \r
   - 依次调用:`python3 skills/gold/gold.py shgold`、`python3 skills/gold/gold.py storegold`(可按需加 `bank`、`london`)。  \r
   - 从结果中摘取常见品种(如 AU9999、黄金延期)及主流金店克价,对比 **国内盘面 vs 金店零售 vs 银行渠道**。\r
\r
2. **走势 / 趋势类**:用户问「黄金走势怎样?后面还会涨吗?」  \r
   - 拉取 `shgold`、`shfutures`、`london`、`bank` 等中与用户场景相关的接口,用返回的 **涨跌幅、昨收、最高最低** 等字段归纳「当前数据反映的强弱」,并明确 **数据时效与免责**;**禁止**捏造 API 未提供的预测结论。\r
\r
## 关于极速数据\r
\r
**极速数据(JisuAPI,[jisuapi.com](https://www.jisuapi.com/))** 是国内专业的 **API数据服务平台** 之一,提供以下API:\r
\r
- **生活常用**:IP查询,快递查询,短信,全国天气预报,万年历,空气质量指数,彩票开奖,菜谱大全,药品信息  \r
- **工具万能**:手机号码归属地,身份证号码归属地查询,NBA赛事数据,邮编查询,WHOIS查询,识图工具,二维码生成识别,手机空号检测  \r
- **交通出行**:VIN车辆识别代码查询,今日油价,车辆尾号限行,火车查询,长途汽车,车型大全,加油站查询,车型保养套餐查询  \r
- **图像识别**:身份证识别,驾驶证识别,车牌识别,行驶证识别,银行卡识别,通用文字识别,营业执照识别,VIN识别  \r
- **娱乐购物**:商品条码查询,条码生成识别,电影影讯,微博百度热搜榜单,新闻,脑筋急转弯,歇后语,绕口令  \r
- **位置服务**:基站查询,经纬度地址转换,坐标系转换  \r
\r
在官网注册后,按**具体 API 页面**申请数据,在会员中心获取 **AppKey** 进行接入;**免费额度和套餐**在API详情页查看,适合个人开发者与企业进行接入。在 **ClawHub** 上也可搜索 **`jisuapi`** 找到更多基于极速数据的 OpenClaw 技能。\r
\r
Usage Guidance
This skill appears to do exactly what it claims: call JisuAPI gold endpoints and return results. Before installing: (1) Understand that using it will send queries (and your JISU API key) to api.jisuapi.com — check JisuAPI's privacy/usage limits and costs. (2) Ensure the agent environment has python3 and the Python 'requests' package installed (the skill doesn't auto-install it). (3) If you care about limiting outbound network access, note that the script makes HTTPS requests to api.jisuapi.com. (4) Review/rotate your JISU API key if you stop using the skill. Overall there are no signs of unrelated data access or exfiltration.
Capability Analysis
Type: OpenClaw Skill Name: gold Version: 1.0.13 The skill bundle provides a legitimate interface for querying gold prices from various markets (SGE, SHFE, London, etc.) via the JisuAPI service. The Python script `gold.py` implements standard API request logic using the `requests` library and retrieves the necessary API key from environment variables, with no evidence of malicious execution, data exfiltration, or harmful instructions in the documentation.
Capability Assessment
Purpose & Capability
Name/description ask for multi-source gold prices and the skill requires a JISU_API_KEY and python3 — this matches the documented use of the JisuAPI gold endpoints. No unrelated credentials, binaries, or paths are requested.
Instruction Scope
SKILL.md instructs running the included Python script with the JISU_API_KEY and specific commands (shgold, shfutures, etc.). The script only reads command-line args and the JISU_API_KEY env var, calls JisuAPI endpoints, and prints JSON; it does not access other files, system credentials, or external endpoints beyond api.jisuapi.com.
Install Mechanism
There is no install spec (instruction-only) which minimizes install risk. Note: the bundled script imports the third-party Python package 'requests' but the skill metadata does not declare or install that dependency — this is an operational mismatch (not a direct security risk) that could cause runtime failures if 'requests' is missing.
Credentials
Only one environment variable is required (JISU_API_KEY) and it is the primary credential needed to call JisuAPI. No other secrets or unrelated env vars are requested or referenced by the code.
Persistence & Privilege
Skill is not always-enabled and does not request system-wide persistence or modify other skills. Autonomous invocation is allowed by default (platform standard) but the skill does not escalate privilege or claim persistent presence.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install gold
  3. After installation, invoke the skill by name or use /gold
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.13
- Update: Skill description now clearly highlights all supported黄金数据源(交易所、银行、金店、伦敦金等),强调查询范围与典型触发场景。 - Description/front section is made more concise and user-oriented, better guiding when and how skill is used. - Explicitly states that涨跌相关字段仅用于辅助说明走势,不构成投资建议。 - No logic or interface changes; API使用方法与脚本调用方式保持不变。
v1.0.12
- 技能名称由“gold”更新为“Gold Price Inquiry - 黄金价格查询” - 其它内容无变化,仅为微调名称以更清晰反映技能用途 - 未检测到文件或功能上的其他改动
v1.0.11
- 精简了描述和说明文案,整体内容更简洁直观。 - 删除了定位及部分冗余介绍,使触发条件、用法、错误码等更清晰。 - 保留各接口范例和常见用法,便于用户查阅。 - 功能和接口未改动,仅为文档优化和结构调整。
v1.0.10
- Refined and clarified the skill's description and usage scenarios for domestic gold price queries. - Expanded explicit trigger conditions, including questions on gold price trends, future outlooks, and price comparisons across gold exchanges, banks, and retail stores. - Emphasized how to use returned data (change percent, open/high/low/close fields) to summarize price trends without making unsupported predictions. - Improved example usage guidelines and added clearer distinctions for when to call each API endpoint. - No changes to script files; documentation and intent enhanced for easier adoption in broader user queries.
v1.0.9
- Updated SKILL.md with a highly concise, bilingual (EN+ZH) description and clear usage context for gold price data lookup. - Added sections highlighting skill application scenarios and primary API endpoints to help users and agents identify use-cases. - Improved keyword guidance for ClawHub/AO integration and gold price-related user queries. - No underlying code changes; update focused on usability documentation and skill discoverability.
v1.0.8
- Skill名称由“jisu-gold”更名为“gold”,更加简洁统一 - Skill描述中的名称与说明进行微调,更加概要且便于理解 - 文档标题、部分说明和命名从“极速数据黄金价格(Jisu Gold)”调整为更通用的“Gold” - 其余用法、接口及示例无变动 - 无接口、功能及代码变动,仅文档细节优化
v1.0.7
Version 1.0.7 of the gold skill - No file changes detected in this release. - No user-visible or functional updates.
v1.0.6
- Improved documentation for clarity and step-by-step API Key setup. - Enhanced the "推荐用法" section for better practical guidance. - Added a service provider highlight at the top for immediate context. - No code changes—documentation and usage instructions only.
v1.0.5
- 补充“关于极速数据”新说明,介绍 JisuAPI 平台及其更多 API 服务与接入方式 - 其余功能、接口和用法无变动
v1.0.4
Version 1.0.4 - No file changes detected in this release. - Documentation and usage instructions remain consistent with previous versions. - No new features, fixes, or modifications introduced.
v1.0.3
- No code or functionality changes in this version. - Documentation remains unchanged except for minor formatting or whitespace adjustments. - No new features, bug fixes, or updates detected.
v1.0.2
- No user-visible changes in this version. - No file changes or documentation updates detected.
v1.0.1
- Documentation updated for clarity and accuracy, including minor text adjustments and improved references. - Error code descriptions now reference the official 极速数据黄金文档. - No changes to code or features; function and usage remain the same.
v1.0.0
初始版本,提供黄金相关数据查询功能: - 新增对上海黄金交易所、上海期货交易所、香港金银业贸易场、银行账户黄金、伦敦金银及金店金价的接口调用支持。 - 支持通过不同命令参数快速查询对应市场或银行、金店的黄金行情。 - 金店金价查询支持按日期查询最近七天内的金价。 - 文档包括环境变量配置、命令行用法示例和常见返回值/错误码说明。 - 专为 OpenClaw 平台设计,建议用法供参考。
Metadata
Slug gold
Version 1.0.13
License MIT-0
All-time Installs 4
Active Installs 4
Total Versions 14
Frequently Asked Questions

What is Gold Price Inquiry - 黄金价格查询?

查询上金所、上期所、港金、银行渠道、伦敦金银及品牌金店等多源黄金参考价;涨跌字段可辅助说明走势(非投资建议)。当用户说:今天黄金多少钱一克?银行金条什么价?周大福金价?伦敦金走势怎样?或类似金价问题时,使用本技能。 It is an AI Agent Skill for Claude Code / OpenClaw, with 1199 downloads so far.

How do I install Gold Price Inquiry - 黄金价格查询?

Run "/install gold" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Gold Price Inquiry - 黄金价格查询 free?

Yes, Gold Price Inquiry - 黄金价格查询 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Gold Price Inquiry - 黄金价格查询 support?

Gold Price Inquiry - 黄金价格查询 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Gold Price Inquiry - 黄金价格查询?

It is built and maintained by 极速数据 (@jisuapi); the current version is v1.0.13.

💬 Comments