香港股市api调用代码返回示例,实现股票编号、股票名称、今日开盘价、前收盘价、最高价、最低价、最新价、涨跌、涨跌幅、买入价、卖出价、成交额、成交量、市盈率等等查询。
接口名称:香港股市api
接口平台:api
接口地址:http://web.juhe.cn:8080/finance/stock/hk
支持格式:JSON
请求方式:GET
请求示例:http://web.juhe.cn:8080/finance/stock/hk?num=00001&key=您申请的APPKEY
香港股市api调用代码JSON返回示例:
{
"resultcode":"200",/*返回码,200:正常*/
"reason":"SUCCESSED!",
"result":[
{
"data":{
"gid":"hk00001", /*股票编号*/
"ename":"CHEUNG KONG", /*股票英文简称*/
"name":"长江实业", /*股票名称*/
"openpri":"119.600", /*今日开盘价*/
"formpri":"119.200", /*前收盘价*/
"maxpri":"120.600", /*最高价*/
"minpri":"119.600", /*最低价*/
"lastestpri":"119.800", /*最新价*/
"uppic":"0.600", /*涨跌*/
"limit":"0.503", /*涨跌幅%*/
"inpic":"119.700", /*买入价*/
"outpic":"119.900", /*卖出价*/
"traAmount":"121700502", /*成交额(元)*/
"traNumber":"1014242", /*成交量(股)*/
"priearn":"6.025", /*市盈率*/
"max52":"132.700", /*52周最高*/
"min52":"86.000", /*52周最低*/
"date":"2013/03/12", /*日期*/
"time":"11:19:12" /*更新时间*/
},
"gopicture":{
"minurl":"http://image.sinajs.cn/newchart/hk_stock/min/00001.gif",/*分时K线*/
"dayurl":"http://image.sinajs.cn/newchart/hk_stock/daily/00001.gif",/*日K线图*/
"weekurl":"http://image.sinajs.cn/newchart/hk_stock/weekly/00001.gif",/*周K线图*/
"monthurl":"http://image.sinajs.cn/newchart/hk_stock/monthly/00001.gif"/*月K线图*/
},
"hengsheng_data": {/*恒生指数*/
"date":"2014/05/12",//日期
"formpri":"21862.99",//前收盘价
"lastestpri":"22220.65",//最新价
"limit":"1.64",//涨跌幅%
"max52":"24111.55",//52周最高
"maxpri":"22250.28",//最高价
"min52":"0.00",//52周最低
"minpri":"21796.90",//最低价
"openpri":"21921.59",//开盘价
"time":"11:44:00",//时间
"traAmount":"31524616000",//成交额
"uppic":"357.66"//涨跌额
}
}]
}