1 Star 0 Fork 0

Yuzhuchao / LSTM-for-stock

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
get data 533 Bytes
一键复制 编辑 原始数据 按行查看 历史
zhang mingyang 提交于 2018-12-02 12:19 . get data
import tushare as ts
pro = ts.pro_api('f3bbc97d0ffbbed8666e6f7c82e712165950d048987f5d6cfbf1e0ce')
#查询当前所有正常上市交易的上交所股票列表
code_list = pro.stock_basic(exchange='SSE', list_status='L', fields='ts_code,symbol,name')
print(code_list)
for i in range(len(code_list)):
print(code_list.iloc[i,0])
data = pro.daily(ts_code=code_list.iloc[i,0], start_date='20180801', end_date='20180912')
data.to_excel('C:/Users/Administrator/Desktop/股票预测/数据2/' + code_list.iloc[i,0] + '.xlsx')
1
https://gitee.com/yuzhuchao/LSTM-for-stock.git
git@gitee.com:yuzhuchao/LSTM-for-stock.git
yuzhuchao
LSTM-for-stock
LSTM-for-stock
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891