Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持从csv里面直接读取股票信息 #19

Closed
fengyqy opened this issue Oct 22, 2020 · 2 comments
Closed

支持从csv里面直接读取股票信息 #19

fengyqy opened this issue Oct 22, 2020 · 2 comments

Comments

@fengyqy
Copy link

fengyqy commented Oct 22, 2020

现在的get_kline是从Tushare上获取的,对于一些不方便访问服务器的(比如:离线研究),可以支持get_kline_from_csv会好一些,我试着添加了一下,但是比较死板:(,如果你的代码也可以支持就更好了,谢谢

@zengbin93
Copy link
Member

@fengyqy 读取csv的K线是可以的,你只要根据你的K线写一个格式化函数就好。具体的格式:
image

@fengyqy
Copy link
Author

fengyqy commented Nov 3, 2020

我是读离线文件,但是我的日K线各种,就是dt那列是,2020-01-07,下一个是2020-01-08这种,但是,最后出错。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants