Giter Site home page Giter Site logo

huobi-autotrading's Introduction

火币网自动化交易工具

目录

  • 目前实现的功能
  • 即将实现的功能
  • 使用方法

目前实现的功能

  1. 通过websocket获取K线图消息
  2. 支持将K线图信息保存到MongoDB数据库
  3. 通过计算N分钟内M的货币的平均变化趋势,判断火币网大盘的涨跌
  4. 支持涨跌幅度超过限度时邮件通知
  5. 通过读取数据库重现一段时间的交易,便于快速验证
  6. 添加测试脚本模拟买入/卖出,便于根据结果修改参数

即将实现的功能

  1. 根据需要添加更多的数据到数据库中
  2. 编写价格预测算法
  3. 添加WSGI服务器,实现通过REST API查询当前模拟价格
  4. 添加交易功能,实现自动化交易

使用方法

Linux系统

进入huobi-autotrading目录

pip install -r requirements.txt

阅读并根据app/settings.py中的提示进行配置

运行程序

python3 -m app.run

huobi-autotrading's People

Contributors

baibinghere avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

huobi-autotrading's Issues

没有WebSocketApp

import websocket

为什么我的webdocket 文件中没有WebSocketApp这个方法 ,用什么版本的?

是不是香港VPS无法访问了

[websocket] error from callback <function on_message at 0x7f5f64289d08>: unsupported operand type(s) for +=: 'float' and 'str'

运行一直报错,但是在本机测试就没问题,用的 huobi.com 的WSS

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.