股票行业对比信息(industry_compare) 在线调试
获取行业对比信息,包含股票和行业每股收益情况
网关地址
沙箱环境调用地址: | https://sandbox.hscloud.cn |
数据核查类生产调用地址: | https://api.hscloud.cn |
其余生产调用地址: | https://open.hscloud.cn |
URL
https://sandbox.hscloud.cn/info/v3/industry_compare |
---|
是否需要业务登录
否 |
---|
HTTP请求方式
GET |
---|
支持格式
JSON |
---|
请求参数
参数名 | 类型 | 必填 | 最大长度 | 默认值 | 中文名 | 描述 |
---|---|---|---|---|---|---|
secu_code | String | 是 | 20 | 股票代码 |
不支持多个,只能输入单代码,输入参数的代码必须以市场后缀结尾,例如 上海:SH,SS 深圳:SZ
|
|
sort_field | String | 否 | 200 | 排序字段 |
可以输入字符串表示按照页面输出的值进行排序,包含字段:operating_revenue、net_profit、profit_ps、net_asset_ps、net_profit_rate,并且大小写不分,只允许输入一个排序字段 若不送sort_field和sort_type,默认以end_date降序排序
|
|
sort_type | String | 否 | 200 | 排序方式 |
只能输入DESC降序,ASC升序,并且大小写不分 若送sort_field,不送sort_type默认值为desc 若送sort_type必须输入相应的排序字段sort_field
|
|
page_no | Integer | 否 | 10 | 1 | 查询页数 |
若不送,默认为1
|
page_count | Integer | 否 | 10 | 10 | 每页条数 |
若不送,默认为10,最大一次查询200条
|
rank_type | String | 否 | 200 | 行业排行类型 |
行业排行类型:当为1时,查询指定股票的行业信息
|
|
end_date | String | 否 | 报告期 |
格式""2015-12-12""或者""20151212""
|
||
fields | String | 否 | 200 | 输出字段集 |
支持多参数,各个参数之间以逗号相隔,如有重复,重复参数将被去除 说明:该输入字段可以指定输出字段 不送默认输出全部字段
|
返回参数
参数名 | 类型 | 最大长度 | 默认值 | 中文名 | 描述 |
---|---|---|---|---|---|
operating_revenue | Float | 200 | 营业收入 |
营业收入(单位元,保留2位小数),如果未取到默认值为"--"
|
|
net_asset_ps | Float | 200 | 每股净资产 |
每股净资产(单位元,保留2位小数),如果未取到默认值为"--"
|
|
secu_code | String | 200 | 股票代码 |
股票代码,如果未取到默认值为"--"
|
|
secu_abbr | String | 200 | 股票简称 |
股票简称,如果未取到默认值为"--"
|
|
end_date | String | 报告期 |
报告期,如果未取到默认值为"--"
|
||
second_industry_name | String | 200 | 行业名称 |
行业名称,如果未取到默认值为"--"
|
|
second_industry_code | String | 200 | 行业代码 |
行业代码,如果未取到默认值为"--"
|
|
net_profit | Float | 200 | 归属母公司股东的净利润 |
归属母公司股东的净利润(单位元,保留2位小数),如果未取到默认值为"--"
|
|
profit_ps | String | 200 | 每股收益 |
每股收益(单位元,保留2位小数),如果未取到默认值为"--"
|
|
net_profit_rate | Float | 200 | 净利润增长率 |
净利润增长率(单位%,保留2位小数),如果未取到默认值为"--"
|
请求示例
/info/v3/industry_compare?page_no=1&end_date=2018-03-31&symbols=600570.SS&rank_type=2
正确返回示例
{"data":[{"operating_revenue":"15784658438.53","secu_code":"000034.SZ","net_profit":"111406861.16","end_date":"2018-03-31","net_asset_ps":"5.27","profit_ps":"0.17","second_industry_name":"计算机应用","secu_abbr":"神州数码","net_profit_rate":"30.66","second_industry_code":"710200"},{"operating_revenue":"1806584865.52","secu_code":"000158.SZ","net_profit":"-21691701.09","end_date":"2018-03-31","net_asset_ps":"3.62","profit_ps":"-0.01","second_industry_name":"计算机应用","secu_abbr":"常山北明","net_profit_rate":"74.81","second_industry_code":"710200"},{"operating_revenue":"2211351512.76","secu_code":"000555.SZ","net_profit":"29496938.98","end_date":"2018-03-31","net_asset_ps":"5.11","profit_ps":"0.03","second_industry_name":"计算机应用","secu_abbr":"神州信息","net_profit_rate":"59.53","second_industry_code":"710200"},{"operating_revenue":"149746449.03","secu_code":"000606.SZ","net_profit":"41372621.18","end_date":"2018-03-31","net_asset_ps":"3.66","profit_ps":"0.05","second_industry_name":"计算机应用","secu_abbr":"神州易桥","net_profit_rate":"-248.00","second_industry_code":"710200"},{"operating_revenue":"244513045.84","secu_code":"000662.SZ","net_profit":"87718941.97","end_date":"2018-03-31","net_asset_ps":"6.73","profit_ps":"0.10","second_industry_name":"计算机应用","secu_abbr":"天夏智慧","net_profit_rate":"2.86","second_industry_code":"710200"},{"operating_revenue":"373681324.56","secu_code":"000948.SZ","net_profit":"-53322192.43","end_date":"2018-03-31","net_asset_ps":"5.69","profit_ps":"-0.22","second_industry_name":"计算机应用","secu_abbr":"南天信息","net_profit_rate":"16.73","second_industry_code":"710200"},{"operating_revenue":"257101996.03","secu_code":"002063.SZ","net_profit":"6072192.05","end_date":"2018-03-31","net_asset_ps":"3.39","profit_ps":"0.01","second_industry_name":"计算机应用","secu_abbr":"远光软件","net_profit_rate":"2.52","second_industry_code":"710200"},{"operating_revenue":"1400070934.32","secu_code":"002065.SZ","net_profit":"134535330.82","end_date":"2018-03-31","net_asset_ps":"2.88","profit_ps":"0.04","second_industry_name":"计算机应用","secu_abbr":"东华软件","net_profit_rate":"-71.18","second_industry_code":"710200"},{"operating_revenue":"42306896.51","secu_code":"002072.SZ","net_profit":"-5201737.79","end_date":"2018-03-31","net_asset_ps":"0.32","profit_ps":"-0.03","second_industry_name":"计算机应用","secu_abbr":"凯 瑞 德","net_profit_rate":"85.19","second_industry_code":"710200"},{"operating_revenue":"531076014.16","secu_code":"002153.SZ","net_profit":"66923674.97","end_date":"2018-03-31","net_asset_ps":"4.99","profit_ps":"0.06","second_industry_name":"计算机应用","secu_abbr":"石基信息","net_profit_rate":"6.58","second_industry_code":"710200"}]}