一、指定日期范围股票分价表
接口:http://market.finance.sina.com.cn/pricehis.php?symbol=[市场][股票代码]&startdate=[开始日期]&enddate=[结束日期]
返回:HTML文本;指定日期范围内的股票分价表
例子:http://market.finance.sina.com.cn/pricehis.php?symbol=sh600900&startdate=2011-08-17&enddate=2011-08-19,获取上证600900股票2011-08-17到2011-08-19日期的分价数据。
截图:
二、获取股票当前数据
新浪数据接口:http://hq.sinajs.cn/list={code}。{code}替换为股票代码,沪市股票代码加前缀sh,深市股票代码加前缀sz。
返回:
var hq_str_sz000002="万 科A,0.00,24.43,0.00,0.00,0,0.00,0.00,0,0.00,0,0.00,0,0.00,0,0.00,0,0.00,0,0.00,0,0.00,0,0.00,0,0.00,0,0.00,0,0.00,2016-04-14,15:05:56,03";
----
原文:https://www.cnblogs.com/Walker-lyl/p/13874792.html