接口说明: 返回指定股票编码的股票盘口数据. 股票编码一次最多传送20个.
接口地址: https://i.h0.cn/shishi.php
返回格式: json
请求方式: HTTP协议,支持GET
/POST
方法。
调试工具: 测试工具
参数名称 | 类型 | 示例值 | 必须 | 描述 |
m_id | Int | 10001 | 是 | 好灵数据网 会员MID |
sign | String | 698d51a19d8a121ce581499d7b701668 | 是 | 数字签名 sign = md5( $token . md5($bjtime)) [PHP CODE: $token = 您的token; $bjtime = date("YmdHi")] [说明: $bjtime = date("YmdHi") 即:$bjtime = "年月日时分";即:201801010930;] |
参数名称 | 类型 | 默认值 | 示例值 | 必须 | 描述 |
actNmae | String | panKou | 是 | 接口名称(固定: actName=panKou) | |
gcodes | Int | sz300251,sz300021 | 是 | 返回sz300251,sz300021对应的股票盘口数据 |
以JSON
格式返回结果。
名称 | 类型 | 示例值 | 描述 |
msg | String | 接口执行情况描述。 | |
code | int | 100 | 好灵数据网 接口执行状态,正数代表执行成功,负数代表执行失败。 100, 接口成功,数据查询成功. -101,系统签名sign验证失败 |
名称 | 类型 | 示 | 描述 |
data | array[] | 返回以股票编码为数组键盘口数组信息如: sz300021,24300,6.170,27400,6.160,18300,6.150,34100,6.140,48300,6.130,66900,6.180,96700,6.190,20100,6.200,73600,6.210,28500,6.220,1559113203; 股票编码,买1量,买1价,买2量,买2价,买3量,买3价,买4量,买4价,买5量,买5价,卖1量,卖1价,卖2量,卖2价,卖3量,卖3价,卖4量,卖4价,卖5量,卖5价,时间; 每支股票输出最近6条成交数据,以";"分号隔开 |
{"code":100,"msg":"\u6570\u636e\u83b7\u53d6\u6210\u529f.","data":{"sz300251":["sz300251,24000,6.880,155600,6.870,107600,6.860,88900,6.850,34500,6.840,87200,6.890,178183,6.900,155700,6.910,124400,6.920,115300,6.930,1559113203;sz300251,24000,6.880,155600,6.870,107600,6.860,88900,6.850,34500,6.840,87200,6.890,178183,6.900,155700,6.910,124400,6.920,115300,6.930,1559113203;sz300251,24000,6.880,155600,6.870,107600,6.860,88900,6.850,34500,6.840,87200,6.890,178183,6.900,155700,6.910,124400,6.920,115300,6.930,1559113203;sz300251,24000,6.880,155600,6.870,107600,6.860,88900,6.850,34500,6.840,87200,6.890,178183,6.900,155700,6.910,124400,6.920,115300,6.930,1559113203;sz300251,24000,6.880,155600,6.870,107600,6.860,88900,6.850,34500,6.840,87200,6.890,178183,6.900,155700,6.910,124400,6.920,115300,6.930,1559113203;sz300251,24000,6.880,155600,6.870,107600,6.860,88900,6.850,34500,6.840,87200,6.890,178183,6.900,155700,6.910,124400,6.920,115300,6.930,1559113203"],"sz300021":["sz300021,24300,6.170,27400,6.160,18300,6.150,34100,6.140,48300,6.130,66900,6.180,96700,6.190,20100,6.200,73600,6.210,28500,6.220,1559113203;sz300021,24300,6.170,27400,6.160,18300,6.150,34100,6.140,48300,6.130,66900,6.180,96700,6.190,20100,6.200,73600,6.210,28500,6.220,1559113203;sz300021,24300,6.170,27400,6.160,18300,6.150,34100,6.140,48300,6.130,66900,6.180,96700,6.190,20100,6.200,73600,6.210,28500,6.220,1559113203;sz300021,24300,6.170,27400,6.160,18300,6.150,34100,6.140,48300,6.130,66900,6.180,96700,6.190,20100,6.200,73600,6.210,28500,6.220,1559113203;sz300021,24300,6.170,27400,6.160,18300,6.150,34100,6.140,48300,6.130,66900,6.180,96700,6.190,20100,6.200,73600,6.210,28500,6.220,1559113203;sz300021,24300,6.170,27400,6.160,18300,6.150,34100,6.140,48300,6.130,66900,6.180,96700,6.190,20100,6.200,73600,6.210,28500,6.220,1559113203"]}}JSON转数组后:
Array ( [code] => 100 [msg] => 数据获取成功. [data] => Array ( [sz300251] => Array ( [0] => sz300251,24000,6.880,155600,6.870,107600,6.860,88900,6.850,34500,6.840,87200,6.890,178183,6.900,155700,6.910,124400,6.920,115300,6.930,1559113203;sz300251,24000,6.880,155600,6.870,107600,6.860,88900,6.850,34500,6.840,87200,6.890,178183,6.900,155700,6.910,124400,6.920,115300,6.930,1559113203;sz300251,24000,6.880,155600,6.870,107600,6.860,88900,6.850,34500,6.840,87200,6.890,178183,6.900,155700,6.910,124400,6.920,115300,6.930,1559113203;sz300251,24000,6.880,155600,6.870,107600,6.860,88900,6.850,34500,6.840,87200,6.890,178183,6.900,155700,6.910,124400,6.920,115300,6.930,1559113203;sz300251,24000,6.880,155600,6.870,107600,6.860,88900,6.850,34500,6.840,87200,6.890,178183,6.900,155700,6.910,124400,6.920,115300,6.930,1559113203;sz300251,24000,6.880,155600,6.870,107600,6.860,88900,6.850,34500,6.840,87200,6.890,178183,6.900,155700,6.910,124400,6.920,115300,6.930,1559113203 ) [sz300021] => Array ( [0] => sz300021,24300,6.170,27400,6.160,18300,6.150,34100,6.140,48300,6.130,66900,6.180,96700,6.190,20100,6.200,73600,6.210,28500,6.220,1559113203;sz300021,24300,6.170,27400,6.160,18300,6.150,34100,6.140,48300,6.130,66900,6.180,96700,6.190,20100,6.200,73600,6.210,28500,6.220,1559113203;sz300021,24300,6.170,27400,6.160,18300,6.150,34100,6.140,48300,6.130,66900,6.180,96700,6.190,20100,6.200,73600,6.210,28500,6.220,1559113203;sz300021,24300,6.170,27400,6.160,18300,6.150,34100,6.140,48300,6.130,66900,6.180,96700,6.190,20100,6.200,73600,6.210,28500,6.220,1559113203;sz300021,24300,6.170,27400,6.160,18300,6.150,34100,6.140,48300,6.130,66900,6.180,96700,6.190,20100,6.200,73600,6.210,28500,6.220,1559113203;sz300021,24300,6.170,27400,6.160,18300,6.150,34100,6.140,48300,6.130,66900,6.180,96700,6.190,20100,6.200,73600,6.210,28500,6.220,1559113203 ) ) )