A股常用指数历史成分股数据Web API

此API提供包括上证50(sh000016),上证180(sh000010),沪深300(sh000300),中证500(sh000905),中证100(sh000903),深证100(sz399330),中小板指(sz399005),创业板指(sz399006)

的历史成份股数据。

 

例如,要获取上证50(sh000016)的最新成分,发送请求

http://shuorel.com/ws/index/list/v1/sh000016

得到结果

{"data":[{"stock_id":"600000","added_date":"2012-01-04"},{"stock_id":"600010","added_date":"2012-01-04"},{"stock_id":"600015","added_date":"2012-01-04"},{"stock_id":"600016","added_date":"2012-01-04"},{"stock_id":"600018","added_date":"2013-12-20"},{"stock_id":"600028","added_date":"2012-01-04"},{"stock_id":"600030","added_date":"2012-01-04"},{"stock_id":"600036","added_date":"2012-01-04"},{"stock_id":"600048","added_date":"2012-01-04"},{"stock_id":"600050","added_date":"2012-01-04"},{"stock_id":"600104","added_date":"2012-01-04"},{"stock_id":"600109","added_date":"2014-12-15"},{"stock_id":"600111","added_date":"2011-01-04"},{"stock_id":"600150","added_date":"2014-12-15"},{"stock_id":"600518","added_date":"2013-07-01"},{"stock_id":"600519","added_date":"2012-01-04"},{"stock_id":"600585","added_date":"2011-07-01"},{"stock_id":"600637","added_date":"2013-12-20"},{"stock_id":"600795","added_date":"2015-12-14"},{"stock_id":"600837","added_date":"2009-01-05"},{"stock_id":"600887","added_date":"2012-07-02"},{"stock_id":"600893","added_date":"2015-05-21"},{"stock_id":"600958","added_date":"2015-06-15"},{"stock_id":"600999","added_date":"2013-07-01"},{"stock_id":"601006","added_date":"2012-01-04"},{"stock_id":"601088","added_date":"2007-10-23"},{"stock_id":"601166","added_date":"2007-02-26"},{"stock_id":"601169","added_date":"2009-01-05"},{"stock_id":"601186","added_date":"2015-06-15"},{"stock_id":"601211","added_date":"2015-12-14"},{"stock_id":"601288","added_date":"2010-07-29"},{"stock_id":"601318","added_date":"2007-03-15"},{"stock_id":"601328","added_date":"2007-05-29"},{"stock_id":"601336","added_date":"2015-12-14"},{"stock_id":"601390","added_date":"2015-06-15"},{"stock_id":"601398","added_date":"2012-01-04"},{"stock_id":"601601","added_date":"2008-07-01"},{"stock_id":"601628","added_date":"2007-01-23"},{"stock_id":"601668","added_date":"2010-01-04"},{"stock_id":"601669","added_date":"2015-12-14"},{"stock_id":"601688","added_date":"2013-01-04"},{"stock_id":"601766","added_date":"2012-01-04"},{"stock_id":"601800","added_date":"2015-06-15"},{"stock_id":"601818","added_date":"2011-01-04"},{"stock_id":"601857","added_date":"2007-11-19"},{"stock_id":"601901","added_date":"2012-07-02"},{"stock_id":"601985","added_date":"2015-12-14"},{"stock_id":"601988","added_date":"2015-06-15"},{"stock_id":"601989","added_date":"2011-07-01"},{"stock_id":"601998","added_date":"2014-12-15"}],"status":"done"}

 

如果要获得上证50在2010年7月1日的成分股,发送请求

http://shuorel.com/ws/index/list/v1/sh000016?date=2010-7-1

返回结果

{"data":[{"stock_id":"600000","added_date":"2004-01-02","removed_date":"2011-01-04"},{"stock_id":"600005","added_date":"2004-07-01","removed_date":"2011-01-04"},{"stock_id":"600015","added_date":"2004-01-02","removed_date":"2011-01-04"},{"stock_id":"600016","added_date":"2004-01-02","removed_date":"2011-01-04"},{"stock_id":"600019","added_date":"2004-01-02","removed_date":"2011-01-04"},{"stock_id":"600028","added_date":"2004-01-02","removed_date":"2011-01-04"},{"stock_id":"600030","added_date":"2004-01-02","removed_date":"2011-01-04"},{"stock_id":"600036","added_date":"2004-01-02","removed_date":"2011-01-04"},{"stock_id":"600048","added_date":"2007-01-04","removed_date":"2011-01-04"},{"stock_id":"600050","added_date":"2004-01-02","removed_date":"2011-01-04"},{"stock_id":"600089","added_date":"2010-01-04","removed_date":"2012-07-02"},{"stock_id":"600104","added_date":"2004-01-02","removed_date":"2011-01-04"},{"stock_id":"600362","added_date":"2007-01-04","removed_date":"2011-01-04"},{"stock_id":"600383","added_date":"2010-01-04","removed_date":"2012-07-02"},{"stock_id":"600489","added_date":"2010-01-04","removed_date":"2014-06-16"},{"stock_id":"600519","added_date":"2005-07-01","removed_date":"2011-01-04"},{"stock_id":"600547","added_date":"2010-01-04","removed_date":"2014-12-15"},{"stock_id":"600550","added_date":"2009-07-01","removed_date":"2011-01-04"},{"stock_id":"600739","added_date":"2008-01-02","removed_date":"2011-01-04"},{"stock_id":"600795","added_date":"2004-01-02","removed_date":"2011-01-04"},{"stock_id":"600837","added_date":"2009-01-05"},{"stock_id":"600900","added_date":"2004-01-02","removed_date":"2011-01-04"},{"stock_id":"601006","added_date":"2006-08-15","removed_date":"2011-01-04"},{"stock_id":"601088","added_date":"2007-10-23"},{"stock_id":"601111","added_date":"2007-07-02","removed_date":"2012-07-02"},{"stock_id":"601166","added_date":"2007-02-26"},{"stock_id":"601168","added_date":"2008-01-02","removed_date":"2012-07-02"},{"stock_id":"601169","added_date":"2009-01-05"},{"stock_id":"601186","added_date":"2009-01-05","removed_date":"2011-01-04"},{"stock_id":"601318","added_date":"2007-03-15"},{"stock_id":"601328","added_date":"2007-05-29"},{"stock_id":"601390","added_date":"2008-07-01","removed_date":"2012-01-04"},{"stock_id":"601398","added_date":"2006-11-10","removed_date":"2011-01-04"},{"stock_id":"601600","added_date":"2007-04-30","removed_date":"2013-01-04"},{"stock_id":"601601","added_date":"2008-07-01"},{"stock_id":"601628","added_date":"2007-01-23"},{"stock_id":"601668","added_date":"2010-01-04"},{"stock_id":"601727","added_date":"2009-07-01","removed_date":"2010-07-29"},{"stock_id":"601766","added_date":"2009-07-01","removed_date":"2011-01-04"},{"stock_id":"601857","added_date":"2007-11-19"},{"stock_id":"601898","added_date":"2009-01-05","removed_date":"2013-07-01"},{"stock_id":"601899","added_date":"2009-01-05","removed_date":"2014-06-16"},{"stock_id":"601919","added_date":"2008-07-01","removed_date":"2012-01-04"},{"stock_id":"601939","added_date":"2008-01-02","removed_date":"2012-01-04"},{"stock_id":"601958","added_date":"2009-07-01","removed_date":"2013-01-04"},{"stock_id":"601988","added_date":"2006-07-19","removed_date":"2011-01-04"}],"status":"done"}

posted @ 2016-05-03 12:31  Leonid  阅读(1057)  评论(0编辑  收藏  举报