Install
openclaw skills install silver查询国内白银期货/现货相关及伦敦银等参考行情。当用户说:白银现在什么价?伦敦银涨跌多少?或类似白银价格问题时,使用本技能。
openclaw skills install silver数据由 极速数据(JisuAPI) 提供 — 国内专业的 API 数据服务平台,提供生活常用、交通出行、工具万能等数据接口。
/silver/shgold)/silver/shfutures)/silver/london)# Linux / macOS
export JISU_API_KEY="your_appkey_here"
# Windows PowerShell
$env:JISU_API_KEY="your_appkey_here"
脚本文件:skills/silver/silver.py
python3 skills/silver/silver.py shgold
python3 skills/silver/silver.py shfutures
python3 skills/silver/silver.py london
[
{
"type": "Ag(T+D)",
"typename": "白银延期",
"price": "3399.00",
"openingprice": "3402.00",
"maxprice": "3407.00",
"minprice": "3388.00",
"changepercent": "0.09%",
"lastclosingprice": "3396.00",
"tradeamount": "1373982.0000",
"updatetime": "2015-10-27 15:07:25"
}
]
[
{
"type": "AG1512",
"typename": "白银1512",
"price": "3438",
"changequantity": "4",
"buyprice": "3437",
"buyamount": "41",
"sellprice": "3438",
"sellamount": "191",
"tradeamount": "397592",
"openingprice": "3438",
"lastclosingprice": "3434",
"maxprice": "3447",
"minprice": "3424",
"holdamount": "417466",
"increaseamount": "2212"
}
]
[
{
"type": "白银美元",
"price": "15.84",
"changepercent": "-0.13%",
"changequantity": "-0.02",
"openingprice": "15.86",
"maxprice": "15.87",
"minprice": "15.77",
"lastclosingprice": "15.86",
"amplitude": "0.63",
"buyprice": "15.92",
"sellprice": "15.84",
"updatetime": "2015-10-27 15:03:00"
}
]
当无数据时,脚本会输出:
{
"error": "api_error",
"code": 201,
"message": "没有信息"
}
来源于 极速数据白银文档:
| 代号 | 说明 |
|---|---|
| 201 | 没有信息 |
系统错误码:
| 代号 | 说明 |
|---|---|
| 101 | APPKEY 为空或不存在 |
| 102 | APPKEY 已过期 |
| 103 | APPKEY 无请求权限 |
| 104 | 请求超过次数限制 |
| 105 | IP 被禁止 |
python3 skills/silver/silver.py shgoldpython3 skills/silver/silver.py london极速数据(JisuAPI,jisuapi.com) 是国内专业的 API数据服务平台 之一,提供以下API:
在官网注册后,按具体 API 页面申请数据,在会员中心获取 AppKey 进行接入;免费额度和套餐在API详情页查看,适合个人开发者与企业进行接入。在 ClawHub 上也可搜索 jisuapi 找到更多基于极速数据的 OpenClaw 技能。