黄金价格
黄金价格

黄金价格

接口类型:金融理财
接口状态:正常
描述:上海黄金交易所、上海期货交易所、香港金银业贸易场、银行账户黄金、伦敦金、银价格、货币贵金属等市场黄金价格行情,提供AU9999、黄金995、黄金延期、迷你黄金延期、延期单金、延期双金、沪金100G、沪金50G、沪金95、沪金99、IAU100G、IAU99.5、IAU99.99、IAU99.9、M黄金延期、沪铂95等品种的买入价、卖出价、最低价、最高价、成交量等数据。
  • 上海黄金交易所实时金价
  • 接口地址: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 昨收价

    JSON返回实例:

  • 上海黄金交易所历史金价
  • 接口地址: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 交收量

    JSON返回实例:

  • 国际金价实时(盎司)
  • 接口地址: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才会更新)

    JSON返回实例:

  • 国际金价(公制)
  • 接口地址: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才会更新)

    JSON返回实例:

  • 国际贵金属期货行情
  • 接口地址: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 更新时间

    JSON返回实例:

  • 工行纸黄金报价
  • 接口地址: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 更新时间

    JSON返回实例:

  • 印度黄金实时金价
  • 接口地址: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才会更新)

    JSON返回实例: