中国黄金交易所开放接口调用代码,可查询黄金详细情况,内容包括品种、中间价、买入价、卖出价、最高价、最低价、今开盘、昨收盘、涨跌量、更新时间等情况。
接口名称:中国黄金交易所开放接口
接口平台:第三方api
接口地址:http://web.juhe.cn:8080/finance/gold/bankgold
支持格式:JSON
请求方式:GET
请求示例:http://web.juhe.cn:8080/finance/gold/bankgold?key=您申请的APPKEY
接口备注:周末市场没有开放,故周末无数据
中国黄金交易所开放接口调用代码JSON返回示例:
{
"resultcode":"200",
"reason":"SUCCESSED!",
"result":[
{
"1":{
"variety":"美元账户黄金", /*品种*/
"midpri":"1675.98", /*中间价*/
"buypri":"1674.48", /*买入价*/
"sellpri":"1677.48", /*卖出价*/
"maxpri":"1693.60", /*最高价*/
"minpri":"1660.95", /*最低价*/
"todayopen":"1693.37", /*今开盘*/
"closeyes":"1674.48", /*昨收盘*/
"quantpri":"0.00", /*涨跌量*/
"time":"2012-12-19 17:57:59" /*更新时间*/
},
"2":{
"variety":"美元账户白银",
"midpri":"31.69",
"buypri":"31.61",
"sellpri":"31.76",
"maxpri":"32.29",
"minpri":"31.37",
"todayopen":"32.29",
"closeyes":"31.61",
"quantpri":"0.00",
"time":"2012-12-19 17:57:59"
},
......
"5":{
"variety":"人民币账户白银",
"midpri":"6.35",
"buypri":"6.35",
"sellpri":"6.35",
"maxpri":"6.47",
"minpri":"6.29",
"todayopen":"6.47",
"closeyes":"6.33",
"quantpri":"0.02",
"time":"2012-12-19 17:57:59"
}
......
}
]
}