Install
openclaw skills install @yanghaolie/gold-price-queryGold price query tool supporting CNY (RMB/gram) and USD (USD/oz) currency options for real-time spot gold price lookup.
openclaw skills install @yanghaolie/gold-price-queryReal-time gold spot price lookup supporting CNY (RMB/gram) and USD (USD/oz) currency options.
Run the script to query gold prices:
# Query USD price (default)
python gold_price.py USD
# Query CNY price
python gold_price.py CNY
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
}
| Parameter | Description | Unit |
|---|---|---|
| CNY | RMB denominated | RMB/gram |
| USD | USD denominated (default) | USD/oz |