接口地址:http://open.liupai.net/gold/shgold
支持格式:JSON,JSONP
请求方式:GET POST
请求示例:http://open.liupai.net/gold/shgold?appkey=yourappsecret
| 参数名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| goldid | int | 是 | 编号可包含 1051:黄金T+D,1052:白银T+D,1053:黄金9999,1054:黄金9995,1055:白银9999,1056:铂金9995,1057:白银999,1058:金条100g,1059:黄金T+N1,1060:黄金T+N2 |
| 参数名称 | 类型 | 说明 |
|---|---|---|
| uptime | string | 更新时间 (行情有变化uptime才会更新) |
| goldid | int | 编号ID |
| variety | string | 品种 |
| varietynm | string | 品种名称 |
| last_price | decimal | 当天价 |
| buy_price | decimal | 买入价 |
| sell_price | decimal | 卖出价 |
| volume | int | 成交量 |
| change_price | decimal | 涨跌额 |
| change_margin | string | 涨跌幅 |
| high_price | decimal | 最高价 |
| low_price | decimal | 最低价 |
| open_price | decimal | 开盘价 |
| yesy_price | decimal | 昨收价 |
接口地址:http://open.liupai.net/gold/shgold_history
支持格式:JSON,JSONP
请求方式:GET POST
请求示例:http://open.liupai.net/gold/shgold_history?appkey=yourappsecret
| 参数名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| goldid | int | 是 | 编号可包含 1051:黄金T+D,1052:白银T+D,1053:黄金9999,1054:黄金9995,1056:铂金9995,1058:金条100g,1059:黄金T+N1,1060:黄金T+N2,1080:iAu9999,1081:mAuT+D |
| date | int | 是 | 查询的年月日 20161101 |
| 参数名称 | 类型 | 说明 |
|---|---|---|
| goldid | int | 编号ID |
| variety | string | 品种编号 |
| varietynm | int | 品种名称 |
| days | string | 查询年月日 |
| last_price | decimal | 当前价 |
| high_price | decimal | 最高价 |
| low_price | decimal | 最低价 |
| open_price | decimal | 开盘价 |
| yesy_price | decimal | 收盘价 |
| rise_fall | decimal | 涨跌(元) |
| rise_fall_per | string | 涨跌幅 |
| vwap_price | decimal | 加权平均价 |
| volume | decimal | 成交量 |
| turn_volume | decimal | 成交金额 |
| inventory | decimal | 持仓量 |
| settlement_direction | string | 交收方向 0:无 1:空支付多 2:多支付空 |
| settlement_direction_nm | file/string | 交收方向 |
| settlement | decimal | 交收量 |
接口地址:http://open.liupai.net/gold/gsgold
支持格式:JSON,JSONP
请求方式:GET POST
请求示例:http://open.liupai.net/gold/gsgold?appkey=yourappsecret
| 参数名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| goldid | int | 是 | 编号包含,同时查多个用逗号隔开(如:1201,1202,1203,1204,1205,1206) 1201: 现货黄金(XAU) 1202: 现货钯金(XPD) 1203: 现货白银(XAG) 1204: 现货铂金(XAP) 1205: 香港黄金(GT) 1206: 台两黄金(TWGD) |
| 参数名称 | 类型 | 说明 |
|---|---|---|
| goldid | int | 编号 |
| variety | string | 品种编号 |
| varietynm | string | 品种名称 |
| last_price | decimal | 最新价(美元/盎司) |
| buy_price | decimal | 买入(美元/盎司) |
| sell_price | decimal | 卖出(美元/盎司) |
| change_price | string | 涨跌额 |
| change_margin | string | 涨跌幅 |
| high_price | decimal | 最高价(美元/盎司) |
| low_price | decimal | 最低价(美元/盎司) |
| open_price | decimal | 开盘价(美元/盎司) |
| yesy_price | decimal | 昨收价(美元/盎司) |
| uptime | string | 更新时间 (行情有变化uptime才会更新) |
接口地址:http://open.liupai.net/gold/ingold
支持格式:JSON,JSONP
请求方式:GET POST
请求示例:http://open.liupai.net/gold/ingold?appkey=yourappsecret
| 参数名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| goldid | int | 否 | 按编号查询 1011:纽约期金(近月) 1012:伦敦黄金 1013:香港黄金 1014:台湾黄金 1015:东京期金(近月) |
| 参数名称 | 类型 | 说明 |
|---|---|---|
| goldid | int | 编号 |
| variety | string | 品种编号 |
| varietynm | string | 品种名称 |
| last_price | decimal | 最新价(人民币元/克) |
| buy_price | decimal | 买入(人民币元/克) |
| sell_price | decimal | 卖出(人民币元/克) |
| volume | int | 成交量(手) |
| change_price | decimal | 涨跌额 |
| change_margin | string | 涨跌幅 |
| high_price | decimal | 最高价(人民币元/克) |
| low_price | decimal | 最低价(人民币元/克) |
| open_price | decimal | 开盘价(人民币元/克) |
| yesy_price | decimal | 昨收价(人民币元/克) |
| uptime | string | 更新时间 (行情有变化uptime才会更新) |
接口地址:http://open.liupai.net/gold/qhgold
支持格式:JSON,JSONP
请求方式:GET POST
请求示例:http://open.liupai.net/gold/qhgold?appkey=yourappsecret
| 参数名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| goldid | int | 否 | 按编号查询 1111:纽约黄金 1112:纽约铂 1113:纽约钯 1114:东京黄金 1115:东京铂 1116:东京钯 1117:美原油06 1118:美原油05 |
| 参数名称 | 类型 | 说明 |
|---|---|---|
| goldid | int | 编号 |
| variety | string | 品种编号 |
| varietynm | string | 品种名称 |
| last_price | decimal | 最新价 |
| buy_price | decimal | 买入 |
| sell_price | decimal | 卖出 |
| volume | int | 成交量 |
| change_price | string | 涨跌额 |
| change_margin | string | 涨跌幅 |
| high_price | decimal | 最高价 |
| low_price | decimal | 最低价 |
| open_price | decimal | 开盘价 |
| yesy_price | decimal | 昨收价 |
| uptime | string | 更新时间 |
接口地址:http://open.liupai.net/gold/gzgold
支持格式:JSON,JSONP
请求方式:GET POST
请求示例:http://open.liupai.net/gold/gzgold?appkey=yourappsecret
| 参数名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| goldid | int | 否 | 按编号查询 1151:工行纸黄金(美元) 1152:工行纸黄金(人民币) 1153:工行纸白银(美元) 1154:工行纸白银(人民币) 1155:工行纸铂金(美元) 1156:工行纸铂金(人民币) 1157:工行纸钯金(美元) 1158:工行纸钯金(人民币) |
| 参数名称 | 类型 | 说明 |
|---|---|---|
| goldid | int | 编号 |
| variety | string | 品种编号 |
| varietynm | string | 品种名称 |
| last_price | decimal | 中间价 |
| high_price | decimal | 最高中间价 |
| low_price | decimal | 最低中间价 |
| buy_price | decimal | 银行买入价 |
| sell_price | decimal | 银行卖出价 |
| uptime | string | 更新时间 |
接口地址:http://open.liupai.net/gold/idgold
支持格式:JSON,JSONP
请求方式:GET POST
请求示例:http://open.liupai.net/gold/idgold?appkey=yourappsecret
| 参数名称 | 类型 | 必填 | 说明 |
|---|---|---|---|
| 暂无参数 | |||
| 参数名称 | 类型 | 说明 |
|---|---|---|
| goldid | int | 编号 |
| variety | string | 品种 |
| varietynm | int | 品种名称 |
| xauPrice | decimal | 黄金价格(oz盎司) |
| xagPrice | decimal | 白银价格(oz盎司) |
| chgXau | string | 黄金涨跌额 |
| chgXag | string | 白银涨跌额 |
| pcXau | string | pc黄金 |
| pcXag | string | pc白银 |
| xauClose | decimal | 黄金收盘价 |
| xagClose | decimal | 白银收盘价 |
| uptime | string | 更新时间 (行情有变化uptime才会更新) |