黄金数据查询提供国内外的黄金行情数据,如上交所、港交所、国际黄金行情及实物黄金价格等,可获取当日黄金的最新价、最高价、买价、卖价、昨收盘价、开盘价、涨跌值、涨跌幅等行情。可应用于黄金交易平台,通过获得实时报价,为用户提供交易时刻的最佳报价。也可在金融市场中,监测和分析金融市场中黄金的表现,辅助分析师对金价趋势做出预测。
我们可以通过第三方服务快速接入黄金数据查询这个功能:
接口地址:http://api.tanshuapi.com/api/gold/v1/shgold2
返回格式:json
请求方式:不限
请求示例:http://api.tanshuapi.com/api/gold/v1/shgold2?key=
接口备注:周六日闭市,闭市期间返回最后一次行情数据。每1分钟更新一次。
请求参数说明:
名称 | 必填 | 类型 | 说明 |
key | 是 | string | 个人中心查看 |
返回参数说明:
名称 | 类型 | 说明 |
list | object | 见JSON返回示例 |
JSON返回示例:
{
"code": 1,
"msg": "操作成功",
"data": {
"list": {
"AuT+D": {
"type": "AuT+D", //品种代码
"typename": "黄金延期", //品种名称
"price": "552.60", //最新价
"buyprice": "552.60", //买入价
"sellprice": "552.80", //卖出价
"changequantity": "0.49", //涨跌额
"changepercent": "0.09%", //涨跌幅
"openingprice": "553.00", //开盘价
"maxprice": "556.25", //最高价
"minprice": "552.50", //最低价
"lastclosingprice": "551.91", //昨收价
"tradeamount": "24074.00", //总成交量(kg)
"unit": "元/克", //单位
"updatetime": "2024-05-28 17:22:01" //更新时间
},
"mAuT+D": {
"type": "mAuT+D",
"typename": "M黄金延期",
"price": "552.60",
"buyprice": "552.50",
"sellprice": "552.60",
"changequantity": "0.18",
"changepercent": "0.03%",
"openingprice": "553.50",
"maxprice": "556.50",
"minprice": "552.46",
"lastclosingprice": "551.80",
"tradeamount": "50470.00",
"unit": "",
"updatetime": "2024-05-28 17:22:01"
},
"Au9999": {
"type": "Au9999",
"typename": "黄金9999",
"price": "552.50",
"buyprice": "552.30",
"sellprice": "552.50",
"changequantity": "0.90",
"changepercent": "0.16%",
"openingprice": "553.00",
"maxprice": "556.30",
"minprice": "552.50",
"lastclosingprice": "551.60",
"tradeamount": "889850.00",
"unit": "元/克",
"updatetime": "2024-05-28 17:22:01"
},
"Au9995": {
"type": "Au9995",
"typename": "黄金9995",
"price": "552.10",
"buyprice": "552.10",
"sellprice": "554.00",
"changequantity": "-0.45",
"changepercent": "-0.08%",
"openingprice": "553.00",
"maxprice": "553.00",
"minprice": "552.10",
"lastclosingprice": "552.55",
"tradeamount": "4.00",
"unit": "元/克",
"updatetime": "2024-05-28 17:22:01"
},
"Au100g": {
"type": "Au100g",
"typename": "100克金条",
"price": "553.00",
"buyprice": "552.00",
"sellprice": "558.65",
"changequantity": "-2.36",
"changepercent": "-0.42%",
"openingprice": "558.26",
"maxprice": "558.65",
"minprice": "553.00",
"lastclosingprice": "555.36",
"tradeamount": "150.00",
"unit": "元/克",
"updatetime": "2024-05-28 17:22:01"
},
"AuT+N1": {
"type": "AuT+N1",
"typename": "黄金单月延期",
"price": "470.00",
"buyprice": "470.00",
"sellprice": "498.00",
"changequantity": "3.35",
"changepercent": "0.72%",
"openingprice": "",
"maxprice": "",
"minprice": "",
"lastclosingprice": "470.00",
"tradeamount": "20.00",
"unit": "元/克",
"updatetime": "2024-05-28 17:22:01"
},
"AuT+N2": {
"type": "AuT+N2",
"typename": "黄金双月延期",
"price": "478.00",
"buyprice": "478.00",
"sellprice": "",
"changequantity": "3.00",
"changepercent": "0.63%",
"openingprice": "",
"maxprice": "",
"minprice": "",
"lastclosingprice": "478.00",
"tradeamount": "2.00",
"unit": "元/克",
"updatetime": "2024-05-28 17:22:01"
},
"SGiAu100g": {
"type": "SGiAu100g",
"typename": "i黄金100g",
"price": "571.80",
"buyprice": "560.01",
"sellprice": "568.61",
"changequantity": "6.80",
"changepercent": "1.20%",
"openingprice": "",
"maxprice": "",
"minprice": "",
"lastclosingprice": "571.80",
"tradeamount": "58.00",
"unit": "",
"updatetime": "2024-05-28 17:22:01"
},
"SGiAu9999": {
"type": "SGiAu9999",
"typename": "i黄金9999",
"price": "547.00",
"buyprice": "546.80",
"sellprice": "547.80",
"changequantity": "0.84",
"changepercent": "0.15%",
"openingprice": "549.50",
"maxprice": "549.98",
"minprice": "546.39",
"lastclosingprice": "546.16",
"tradeamount": "36206.00",
"unit": "",
"updatetime": "2024-05-28 17:22:01"
},
"PT9995": {
"type": "PT9995",
"typename": "铂金9995",
"price": "253.00",
"buyprice": "",
"sellprice": "251.78",
"changequantity": "2.60",
"changepercent": "1.04%",
"openingprice": "254.06",
"maxprice": "254.06",
"minprice": "253.00",
"lastclosingprice": "250.40",
"tradeamount": "18.00",
"unit": "元/克",
"updatetime": "2024-05-28 17:22:01"
}
}
}
}