提供上海黄金交易所白银品种的实时行情数据。数据每分钟更新一次,周六日闭市期间返回最后一次行情数据。
提供上海黄金交易所白银品种的实时行情数据。数据每分钟更新一次,周六日闭市期间返回最后一次行情数据。
[]
{"openapi":"3.1.1","info":{"title":"白银数据查询","description":"提供上海黄金交易所白银品种的实时行情数据。数据每分钟更新一次,周六日闭市期间返回最后一次行情数据。","version":"1.0.0"},"paths":{"/apis/gateway?api=silver":{"get":{"summary":"白银数据查询","description":"提供上海黄金交易所白银品种的实时行情数据。数据每分钟更新一次,周六日闭市期间返回最后一次行情数据。","parameters":[],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"summary":"白银数据查询","description":"提供上海黄金交易所白银品种的实时行情数据。数据每分钟更新一次,周六日闭市期间返回最后一次行情数据。","parameters":[],"responses":{"200":{"description":"成功","content":{"application/json":{"schema":{"type":"object"}}}}}}}},"servers":[{"url":"https://api.souxiaocha.com","description":"当前访问入口(https)"}]}
{"success":true,"data":{"list":{"AgT+D":{"type":"AgT+D","typename":"白银延期","price":"14246.00","buyprice":"14245.00","sellprice":"14251.00","changequantity":"161.00","changepercent":"1.14%","openingprice":"14100.00","maxprice":"14485.00","minprice":"13885.00","lastclosingprice":"14206.00","tradeamount":"142996.00","unit":"元\/千克","updatetime":"2026-07-30 10:28:01"},"Ag9999":{"type":"Ag9999","typename":"白银9999","price":"14260.00","buyprice":"13900.00","sellprice":"","changequantity":"290.00","changepercent":"2.08%","openingprice":"","maxprice":"","minprice":"","lastclosingprice":"14260.00","tradeamount":"2.00","unit":"元\/千克","updatetime":"2026-07-30 10:28:01"}},"update_time":"2026-07-30 10:28:01","count":2},"generated_at":"2026-07-30 10:28:05"}https://api.souxiaocha.com/apis/gateway?api=silverGET https://api.souxiaocha.com/apis/gateway?api=silver apikey=你的API密钥
GET 参数放在查询字符串中。参数值请替换为实际有效值。
{"success":true,"data":{"list":{"AgT+D":{"type":"AgT+D","typename":"白银延期","price":"14246.00","buyprice":"14245.00","sellprice":"14251.00","changequantity":"161.00","changepercent":"1.14%","openingprice":"14100.00","maxprice":"14485.00","minprice":"13885.00","lastclosingprice":"14206.00","tradeamount":"142996.00","unit":"元\/千克","updatetime":"2026-07-30 10:28:01"},"Ag9999":{"type":"Ag9999","typename":"白银9999","price":"14260.00","buyprice":"13900.00","sellprice":"","changequantity":"290.00","changepercent":"2.08%","openingprice":"","maxprice":"","minprice":"","lastclosingprice":"14260.00","tradeamount":"2.00","unit":"元\/千克","updatetime":"2026-07-30 10:28:01"}},"update_time":"2026-07-30 10:28:01","count":2},"generated_at":"2026-07-30 10:28:05"}提供上海黄金交易所白银品种的实时行情数据。数据每分钟更新一次,周六日闭市期间返回最后一次行情数据。
https://api.souxiaocha.com/apis/gateway?api=silver
GET / POST(业务参数 GET 通过 URL 传递,POST 支持表单或 JSON)
调用需携带平台密钥(用户中心「令牌管理」获取,SK- 开头):
key=SK-你的密钥X-API-Key: SK-你的密钥本接口无需业务参数,直接调用即可。
成功返回示例:
{"success":true,"data":{"list":{"AgT+D":{"type":"AgT+D","typename":"白银延期","price":"14246.00","buyprice":"14245.00","sellprice":"14251.00","changequantity":"161.00","changepercent":"1.14%","openingprice":"14100.00","maxprice":"14485.00","minprice":"13885.00","lastclosingprice":"14206.00","tradeamount":"142996.00","unit":"元\/千克","updatetime":"2026-07-30 10:28:01"},"Ag9999":{"type":"Ag9999","typename":"白银9999","price":"14260.00","buyprice":"13900.00","sellprice":"","changequantity":"290.00","changepercent":"2.08%","openingprice":"","maxprice":"","minprice":"","lastclosingprice":"14260.00","tradeamount":"2.00","unit":"元\/千克","updatetime":"2026-07-30 10:28:01"}},"update_time":"2026-07-30 10:28:01","count":2},"generated_at":"2026-07-30 10:28:05"}
| 参数名 | 类型 | 说明 |
|---|---|---|
| type | string | 品种代码 |
| typename | string | 品种中文名称 |
| price | string | 最新价 |
| buyprice | string | 买入价 |
| sellprice | string | 卖出价 |
| changequantity | string | 涨跌额 |
| changepercent | string | 涨跌幅 |
| openingprice | string | 开盘价 |
| maxprice | string | 最高价 |
| minprice | string | 最低价 |
| lastclosingprice | string | 昨收价 |
| tradeamount | string | 总成交量(kg) |
| unit | string | 单位 |
| updatetime | string | 更新时间 |
curl "https://api.souxiaocha.com/apis/gateway?api=silver?key=SK-你的密钥"
上游业务级错误:
| code | msg | 描述 |
|---|---|---|
| 401 | invalid_api_key | 白银密钥无效 |
| 405 | method_not_allowed | 使用了GET以外的方法 |
| 500 | config_error | 服务配置异常 |
| 500 | api_request_failed | 第三方接口请求异常 |
| 500 | api_parse_failed | 响应解析失败 |
| 502 | query_failed | 白银数据查询失败 |
平台级错误(errcode):11001 缺少密钥 / 11002 密钥无效或已禁用 / 11005 接口禁用 / 11006 接口维护 / 11010 积分不足 / 11018 请求方式不允许。
失败时请以响应体中的 code / errcode 与 msg 判断。
2026-09-24
curl "https://api.souxiaocha.com/apis/gateway?api=silver?key=SK-你的密钥"
未登录?登录 后自动填充令牌;免费接口可不填直接测试。
无声明参数,可直接发送请求。
// 结果将在此处显示