所以造成这个问题产生的原因很简单,就是各种库之间的版本不匹配,只需要把numpy
的版本降到1.14.5就可以了
sudo pip uninstall numpy
sudo pip install numpy==1.14.5
https://blog.csdn.net/liuyukuan/article/details/70596062
如何安装tushare
还要安装bz4 和beautifulsoup
http://tushare.org/
1.装python
这个简单就不细讲了,我装的是python3.6
2.装pandas
pip install -i https://pypi.douban.com/simple pandas
3.装lxml
pip install lxml
4.装requests
pip install requests
5.装tushare
pip install tushare
https://www.cnblogs.com/MMonica/p/5186443.html
Anaconda: Anaconda is a completely free Python distribution (including for commercial use and redistribution). It includes more than 400 of the most popular Python packages for science, math, engineering, and data analysis.
https://www.continuum.io/downloads
Tushare: TuShare是一个免费、开源的python财经数据接口包。主要实现对股票等金融数据从数据采集、清洗加工 到 数据存储的过程,能够为金融分析人员提供快速、整洁、和多样的便于分析的数据,为他们在数据获取方面极大地减轻工作量,使他们更加专注于策略和模型的研究与实现上。(Anaconda安装:pip install tushare)
Pandas: pandas is an open source, BSD-licensed library providing high-performance, easy-to-use data structures and data analysis tools for the Python programming language. (Anaconda已包含)
Zipline: Zipline is a Pythonic algorithmic trading library. It is an event-driven system that supports both backtesting and live-trading. (Anaconda暂未收录最新版)
http://www.zipline.io/index.html
掘金量化:掘金是为专业量化机构和宽客打造的一套全栈式量化交易解决方案。
RiceQuant: Ricequant 的终极目标是成为每一个宽客 ( Quant ) 的私人量化交易平台。所有的灵感可以在我们这里变成代码,通过我们安全、极速的平台交易获得运算结果,每一个策略都可以通过我们的平台实现。
优矿:『优矿』是您的私人金融量化分析的平台。我们旨在打破金融量化的壁垒,为广大量化爱好者提供华尔街专业量化机构的装备。通过提供高质量的海量金融数据与高性能的分析工具,共襄智慧与金融在大数据时代的红利。
聚宽:在线量化交易平台。
Wind量化平台:Wind量化平台包括机构版和个人版两个版本。其中机构版即Wind资讯金融终端。
同花顺量化交易平台:同花顺开发的回测、实盘量化交易平台。
http://51ifind.com/index.php?c=index&a=trade
Pyalgotrade: PyAlgoTrade is an event driven algorithmic trading Python library.
https://github.com/Yam-cn/pyalgotrade-cn
QuantDigger:基于Python的量化交易平台
https://github.com/QuantFans/quantdigger
EasyTrader:提供华泰/佣金宝/银河的股票自动交易
https://github.com/shidenggui/easytrader
Quantopian: 国外在线量化交易平台。
龙卷风行情接收接口:全推行情数据接口。
好雨云:在线应用部署云平台。
Python入门手册:Python 2.7 手册
Python教程:廖雪峰的Python教程
Python量化平台开发教程:vn.py
https://www.cnblogs.com/zhanglong8681/p/7569248.html
摘抄自知乎:https://www.zhihu.com/question/28557233
如题,提问的范围限于适合中国大陆金融市场使用的工具链,所以IbPy和Quotopian之类主要面向欧美市场的工具不算,zipline这种库可以算。题主知道的一些: