问答交流

怎么获取历史数据?

由bq1y4i7c创建,最终由bq1y4i7c 被浏览 2 用户

import dai

from bigmodule import M

\n

#获取数据

start_date="2012-02-01"

end_date="2017-07-18"

instruments=["000069.sza","002337.sza","000333.sza","000338.sza","000100.sza"]

data=M.get_history_data(instruments,start_date,end_date,fields=['close'])

print(data.head())

这个代码无法运作,请问到底错在哪儿?

{link}