360 Secure SkillHub
360 安全技能中心

gold-price-query

该 Skill 通过命令行运行 Python 脚本查询实时现货黄金价格,支持 CNY(人民币/克)与 USD(美元/盎司,默认)两种计价单位,返回含开盘价、当前价、最高价、最低价、买卖价、涨跌额、涨跌幅、成交量和更新时间的 JSON 数据,需要联网访问行情接口。

分类:生活
yanghaolie
yanghaolie
热度 27.21
最近更新 2026-05-11 17:42:28

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add yanghaolie/gold-price-query
兼容性
通用兼容
联网要求
需要联网
数据出网
数据不出本机
Metadata
name
gold-price-query
description
Gold price query tool supporting CNY (RMB/gram) and USD (USD/oz) currency options for real-time spot gold price lookup.

Gold Price Query

Real-time gold spot price lookup supporting CNY (RMB/gram) and USD (USD/oz) currency options.

Quick Start

Run the script to query gold prices:

# Query USD price (default)
python gold_price.py USD

# Query CNY price
python gold_price.py CNY

Output Format

Returns JSON data containing:

{
  "success": true,
  "data": {
    "名称": "现货黄金",
    "单位": "美元/盎司",
    "开盘价": "2350.00",
    "当前价": "2355.50",
    "最高价": "2360.00",
    "最低价": "2345.00",
    "买价": "2355.00",
    "卖价": "2356.00",
    "涨跌额": "5.50",
    "涨跌幅": "0.23%",
    "成交量": "500000",
    "更新时间": "2024-04-12 10:30:00"
  },
  "timestamp": 1712899200000
}

Currency Parameters

Parameter Description Unit
CNY RMB denominated RMB/gram
USD USD denominated (default) USD/oz

Notes

  • Requires network access to API
  • API source: jijinhao.com
  • Consider setting appropriate request intervals to avoid rate limiting