- 一个接口是一组接入点,每个接入点有自己的费率
- 资源包过期或用完,会立即失效
- 可购买多个资源包,会自动递延生效串联使用
sh601007,sh601008,sh601009,sz000018,hk00941
专注全域API服务, 您的支持就是我们最大的肯定
让网络数据像水、电一样, 使用容易、自由和便宜
已为3000多家企业提供API服务
非文件上传的POST时,请设置headers['Content-Type'] = 'application/x-www-form-urlencoded',
并把对象形式的数据转成查询字符串
文件上传的POST时,请设置headers['Content-Type'] = 'multipart/form-data'
参数名称 | 类型 | 示例值 | 必须 | 描述 |
---|---|---|---|---|
showapi_appid | String | 100 | 是 | 易源应用id |
showapi_sign | String | 698d51a19d8a121ce581499d7b701668 | 是 | 为了验证用户身份,以及确保参数不被中间人篡改,需要传递调用者的数字签名。 可选【简单密钥方式】,在url后带上showapi_appid和showapi_sign即可 |
showapi_timestamp | String | 20141114142239 | 否 | 客户端时间。
格式yyyyMMddHHmmss,如20141114142239 为了在一定程度上防止“重放攻击”,平台只接受在10分钟之内的请求。如果不传或传空串,则系统不再做此字段的检测。 |
showapi_res_gzip | String | 1或0 | 否 | 返回值是否用gzip方式压缩。此值为1时将压缩,其他值不压缩。 |
... |
参数名称 | 类型 | 默认值 | 示例值 | 必须 | 描述 |
---|---|---|---|---|---|
stocks | String |
sh601007,sh601008,sh601009,sz000018,hk00941
|
是 |
股票编码。多个股票代码间以英文逗号分隔,最多输入10个代码。
|
|
needIndex | String |
0
|
否 |
是否需要返回当前4大股票指数(上证指数、深证成指、恒生指数、创业板指)。1为需要,0为不需要。
|
以JSON格式返回结果。
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
showapi_res_body | String | {"city":"昆明","prov":"云南"} | 消息体的JSON封装,所有应用级的返回参数将嵌入此对象 。 |
showapi_res_code | int | 0 |
易源返回标志,0为成功,其他为失败。
0成功 -1,系统调用错误 -2,可调用次数或金额为0 -3,读取超时 -4,服务端返回数据解析错误 -5,后端服务器DNS解析错误 -6,服务不存在或未上线 -7, API创建者的网关资源不足 -1000,系统维护 -1002,showapi_appid字段必传 -1003,showapi_sign字段必传 -1004,签名sign验证有误 -1005,showapi_timestamp无效 -1006,app无权限调用接口 -1007,没有订购套餐 -1008,服务商关闭对您的调用权限 -1009,调用频率受限 -1010,找不到您的应用 -1011,子授权app_child_id无效 -1012,子授权已过期或失效 -1013,子授权ip受限 -1014,token权限无效 |
showapi_res_error | String | 用户输入有误! | 错误信息的展示 |
showapi_res_id | String | ce135f6739294c63be0c021b76b6fbff | 本次请求id |
... |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
list | Object[] |
|
股票行情列表
|
- name | String |
|
股票名称
|
- openPrice | String |
|
今日开盘价
|
- closePrice | String |
|
昨日收盘价
|
- nowPrice | String |
|
当前价格
|
- todayMax | String |
|
今日最高价
|
- todayMin | String |
|
今日最低价
|
- tradeNum | String |
|
成交量(沪深为股,港股为手)
|
- tradeAmount | String |
|
成交金额(金额,元)
|
- buy1_n | String |
|
买一数量(股)
|
- buy1_m | String |
|
买一报价(金额,元)
|
- buy2_n | String |
|
买二
|
- buy2_m | String |
|
买二报价
|
- buy3_n | String |
|
买三
|
- buy3_m | String |
|
买三报价
|
- buy4_n | String |
|
买四
|
- buy4_m | String |
|
买四报价
|
- buy5_n | String |
|
买五
|
- buy5_m | String |
|
买五报价
|
- sell1_n | String |
|
卖一
|
- sell1_m | String |
|
卖一报价
|
- sell2_n | String |
|
卖二
|
- sell2_m | String |
|
卖二
|
- sell3_n | String |
|
卖三
|
- sell3_m | String |
|
卖三报价
|
- sell4_n | String |
|
卖四
|
- sell4_m | String |
|
卖四报价
|
- sell5_n | String |
|
卖五
|
- sell5_m | String |
|
卖五报价
|
- date | String |
|
日期
|
- time | String |
|
时间
|
- diff_money | String |
2.1
|
涨跌金额
|
- diff_rate | String |
0.07
|
涨跌幅度
|
- swing | String |
0.78
|
振幅
|
- turnover | String |
0.02%
|
换手率
|
- pe | String |
11.7
|
市盈率(TTM,动态)
|
- pb | String |
1.16
|
市净率
|
- highLimit | String |
20.04
|
涨停价
|
- downLimit | String |
16.4
|
跌停价
|
- all_value | String |
123
|
总市值,亿元
|
- circulation_value | String |
45
|
流通市值,亿元
|
- totalcapital | String |
115006.4467
|
总股本,万股
|
- currcapital | String |
5006.4467
|
流通股本,万股
|
- max52 | String |
|
52周最大价格
|
- min52 | String |
|
52周最低价格
|
- appointRate | String |
-13.96
|
委比(%)
|
- appointDiff | String |
-658
|
委差(手)
|
- state | String |
1
|
1为正常状态,非1为停牌
|
indexList | Object[] |
|
当前4大股票指数(上证指数、深证成指、恒生指数、创业板指)
|
- code | String |
sh000001
|
指数编码
|
- name | String |
上证指数
|
指数名称
|
- todayOpenPrice | String |
5101.44
|
今日开盘点数
|
- yestodayClosePrice | String |
5106.036
|
昨日收盘点数
|
- nowPrice | String |
5121.593
|
当前点数
|
- maxPrice | String |
5122.457
|
最高点数
|
- minPrice | String |
5050.765
|
最低点数
|
- tradeNum | String |
563990522.0
|
成交量(股,不是手)
|
- tradeAmount | String |
974670611914.0
|
成交金额(元)
|
- time | String |
2015-06-11 15:04:06
|
刷新时间
|
- max52 | String |
3122.457
|
52周最高点数
|
- min52 | String |
5122.457
|
52周最低点数
|
- swing | String |
0.3923
|
振幅(%)
|
- diff_rate | String |
0.25
|
涨跌幅(%)
|
- diff_money | String |
1.2
|
涨跌金额,元
|
ret_code | String |
0
|
0为成功,其他失败
|
... |
{
"showapi_res_code": 0,
"showapi_res_error": "",
"showapi_res_id":"ce135f6739294c63be0c021b76b6fbff",
"showapi_res_body": {
"indexList": [
{
"code": "sh000001",
"maxPrice": 4006.337,
"minPrice": 3964.936,
"name": "上证指数",
"nowPrice": 3966.381,
"time": "2015-08-18 10:35:44",
"todayOpenPrice": 3999.134,
"tradeAmount": 280632640360,
"tradeNum": 199912933,
"yestodayClosePrice": 3993.668
},
{
"code": "sz399001",
"maxPrice": 13652.542,
"minPrice": 13517.324,
"name": "深证成指",
"nowPrice": 13548.316,
"time": "2015-08-18 10:35:51",
"todayOpenPrice": 13608.516,
"tradeAmount": 256037205656.52,
"tradeNum": 14598517017,
"yestodayClosePrice": 13573.902
},
{
"code": "sz399005",
"maxPrice": 9148.755,
"minPrice": 9060.204,
"name": "中小板指",
"nowPrice": 9086.175,
"time": "2015-08-18 10:35:51",
"todayOpenPrice": 9115.862,
"tradeAmount": 27528057088.63,
"tradeNum": 1190644652,
"yestodayClosePrice": 9103.32
},
{
"code": "sz399006",
"maxPrice": 2720.575,
"minPrice": 2669.351,
"name": "创业板指",
"nowPrice": 2700.056,
"time": "2015-08-18 10:35:51",
"todayOpenPrice": 2674.422,
"tradeAmount": 22556508167.85,
"tradeNum": 698847275,
"yestodayClosePrice": 2666.287
}
],
"list": [
{
"buy1_m": "10.98",
"buy1_n": "47000",
"buy2_m": "10.97",
"buy2_n": "86400",
"buy3_m": "10.96",
"buy3_n": "33500",
"buy4_m": "10.95",
"buy4_n": "188200",
"buy5_m": "10.94",
"buy5_n": "204548",
"closePrice": "11.02",
"code": "601006",
"competBuyPrice": "10.98",
"competSellPrice": "10.99",
"date": "2015-08-18",
"name": "大秦铁路",
"nowPrice": "10.98",
"openPrice": "10.93",
"sell1_m": "10.99",
"sell1_n": "38000",
"sell2_m": "11.00",
"sell2_n": "422100",
"sell3_m": "11.01",
"sell3_n": "213142",
"sell4_m": "11.02",
"sell4_n": "309600",
"sell5_m": "11.03",
"sell5_n": "71257",
"time": "10:35:44",
"todayMax": "11.09",
"todayMin": "10.91",
"tradeAmount": "272757594",
"tradeNum": "24816214",
"all_value": "19333.25",
"circulation_value": "19333.25"
},
{
"buy1_m": "20.22",
"buy1_n": "200",
"buy2_m": "20.20",
"buy2_n": "5600",
"buy3_m": "20.18",
"buy3_n": "4000",
"buy4_m": "20.16",
"buy4_n": "2300",
"buy5_m": "20.15",
"buy5_n": "6100",
"closePrice": "21.04",
"code": "601007",
"competBuyPrice": "20.22",
"competSellPrice": "20.23",
"date": "2015-08-18",
"name": "金陵饭店",
"nowPrice": "20.20",
"openPrice": "20.79",
"sell1_m": "20.23",
"sell1_n": "8000",
"sell2_m": "20.24",
"sell2_n": "75900",
"sell3_m": "20.25",
"sell3_n": "11100",
"sell4_m": "20.27",
"sell4_n": "1600",
"sell5_m": "20.28",
"sell5_n": "4000",
"time": "10:35:44",
"todayMax": "21.04",
"todayMin": "20.20",
"tradeAmount": "165670874",
"tradeNum": "8029111",
"all_value": "19333.25",
"circulation_value": "19333.25"
}
],
"ret_code": 0
}
}
用户名: showapi
电话: 4009988033
微博: http://www.weibo.com/showapi
邮箱:
QQ: 3007663665
微信: show_api (公众号)