码迷,mamicode.com
首页 > Windows程序 > 详细

A股股本结构历史数据查询Web API使用方法

时间:2016-05-03 14:05:22      阅读:794      评论:0      收藏:0      [点我收藏+]

标签:

例如,要查询长城汽车(601633)最新的股本结构,发送请求

http://shuorel.com/ws/share/structure/v1/601633

返回得到

 

{"data":[{"code":"601633","date":"2015-10-14","total_share":9127260000,"circulating_share":6027720000,"executives_share":0,"limited_share":0,"B_share":0,"H_share":3099540000,"announcement_date":"2015-09-30","reason":"送、转股"}],"status":"done"}

 

最新数据是在2015-09-30公布,2015-10-14生效。其中circulating_share为自由流通股数量,H_share为港股流通数量。

 

如要获得长城汽车在特定历史日期的股本信息,如2015-6-1,发送请求

http://shuorel.com/ws/share/structure/v1/601633?date=2015-6-1

 

得到结果

 

{"data":[{"code":"601633","date":"2014-09-29","total_share":3042420000,"circulating_share":2009240000,"executives_share":0,"limited_share":0,"B_share":0,"H_share":1033180000,"announcement_date":"2014-09-20","reason":"其它上市"}],"status":"done"}

 

如果要获得长城汽车在2015年全年的股本变化数据,发送请求

http://shuorel.com/ws/share/structure/v1/601633?year=2015

 

得到结果

 

{"data":[{"code":"601633","date":"2015-10-14","total_share":9127260000,"circulating_share":6027720000,"executives_share":0,"limited_share":0,"B_share":0,"H_share":3099540000,"announcement_date":"2015-09-30","reason":"送、转股"}],"status":"done"}

 

说明长城汽车在2015年中只在2015-10-14日发生了股本变动。

A股股本结构历史数据查询Web API使用方法

标签:

原文地址:http://www.cnblogs.com/shuorel/p/5454535.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!