投机者通过机器学习模型和技术分析预测比特币和以太坊等加密货币的价格走势。
speculator的Python项目详细描述
投机者预测比特币和 以太坊。
正常市场也将在未来的更新中加入。
如何开始
使用python:
python main.py
使用web restful api:
python api.py curl http://localhost:5000/api/public/predict -X GET
示例:
对于可选参数的完整列表,请使用--help标志。 注意:一个提供友好用户体验的网站正在开发中
依赖性
在运行投机者之前,请确保已安装这些软件包:
- Delorean,^{TT2}$
- requests,pip3 install requests
- NumPy,pip3 install numpy
- TensorFlow,pip3 install tensorflow
- scikit-learn,^{TT6}$
- pandas,^{TT7}$
- flask,pip3 install flask
- flask-cache,pip3 install flask-cache
- flask-restful,pip3 install flask-restful
- webargs,pip3 install webargs
或者只使用一行代码:
pip3 install delorean requests numpy tensorflow scikit-learn pandas flask flask-cache flask-restful webargs
api
web restful:
首先用python api.py启动flask api服务器。 然后使用http方法,比如get:curl http://localhost:5000/api/public/predict-X GET
有关url中有效参数的列表,请明天(12/20/17)再查看。
我计划启动一个服务器,任何人都可以访问它,而不必启动自己的flask服务器,但只能使用公共访问。 使用用户身份验证(私有访问)在自己的服务器上启动此操作将允许您放置/发布/删除自己的市场数据,并分析这些数据而不是默认数据。 目前正在开发中,将来还会扩展。
python:
投机者可以在pypi上作为一个包获得。
pip3 install speculator
如果你想使用或完全理解投机者的api,我 建议查看docs,它具有 记录的例子。
项目结构
LICENSE README.md docs \_ CONTRIBUTING.md \_ analysis.md \_ example.md \_ example.py \_ utils.md speculator \_ api.py \_ main.py \_ market.py \_ features \_ obv.py \_ rsi.py \_ sma.py \_ so.py \_ models \_ deep_neural_network.py \_ random_forest.py \_ tests \_ integration \_ test_poloniex.py \_ unit \_ test_date.py \_ test_poloniex.py \_ test_obv.py \_ test_rsi.py \_ test_sma.py \_ test_so.py \_ test_stats.py \_ utils \_ date.py \_ poloniex.py \_ stats.py