GithubHelp home page GithubHelp logo

mmmaaaggg / ibats_huobifeeder_old Goto Github PK

View Code? Open in Web Editor NEW
39.0 4.0 15.0 74 KB

【停止维护】新版本更新已迁移到 IBATS 项目组对应名称项目中。连接火币交易所,获取火币实时行情、火币历史行情,保存到mysql数据库同时redis广播,供 ABAT 交易平台进行策略回测、分析,交易使用

License: GNU General Public License v3.0

Python 99.81% Batchfile 0.08% Shell 0.11%
python python36 huobi huobipro quant

ibats_huobifeeder_old's Introduction

Hi there 👋

由于近期经常无法方位 github 因此将部分活跃项目迁移到 gitee 同名目录下 https://gitee.com/mmmaaaggg

              ,----------------,              ,---------,
         ,-----------------------,          ,"        ,"|
       ,"                      ,"|        ,"        ,"  |
      +-----------------------+  |      ,"        ,"    |
      |  .-----------------.  |  |     +---------+      |
      |  |                 |  |  |     | -==----'|      |
      |  |  I LOVE Python! |  |  |     |         |      |
      |  |                 |  |  |/----|`---=    |      |
      |  |  (venv)D:\>_    |  |  |   ,/|==== ooo |      ;
      |  |                 |  |  |  // |(((( [33]|    ,"
      |  `-----------------'  |," .;'| |((((     |  ,"
      +-----------------------+  ;;  | |         |,"
         /_)______________(_/  //'   | +---------+
    ___________________________/___  `,
   /  oooooooooooooooo  .o.  oooo /,   \,"-----------
  / ==ooooooooooooooo==.o.  ooo= //   ,`\--{)B     ,"
 /_==__==========__==_ooo__ooo=_/'   /___________,"

                 .-~~~~~~~~~-._       _.-~~~~~~~~~-.
             __.'              ~.   .~              `.__
           .'//                  \./                  \\`.
         .'//                     |                     \\`.
       .'// .-~"""""""~~~~-._     |     _,-~~~~"""""""~-. \\`.
     .'//.-"                 `-.  |  .-'                 "-.\\`.
   .'//______.============-..   \ | /   ..-============.______\\`.
 .'______________________________\|/______________________________`.

mmmaaaggg's github stats

My Lang

我的Github summary欢迎进入访问

ibats_huobifeeder_old's People

Contributors

mmmaaaggg 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

Watchers

 avatar  avatar  avatar  avatar

ibats_huobifeeder_old's Issues

运行抛异常 threads can only be started once

按照说明装好环境后再centos上运行,数据库初始化简历都成功了,之后会反复抛出异常:threads can only be started once

运行日志如下:

2018-07-24 15:31:52,294 INFO HuoBi service.py.on_open:95|<订阅>初始化订阅完成
2018-07-24 15:31:52,636 INFO HuoBi service.py.on_message:56|<订阅>Topic:market.btcusdt.kline.1min订阅成功 Time:2018-07-24 15:31:52.399000 ##
2018-07-24 15:31:52,636 INFO HuoBi service.py.on_message:56|<订阅>Topic:market.btcusdt.kline.60min订阅成功 Time:2018-07-24 15:31:52.400000 ##
2018-07-24 15:31:52,637 INFO HuoBi service.py.on_message:56|<订阅>Topic:market.btcusdt.kline.1day订阅成功 Time:2018-07-24 15:31:52.400000 ##
2018-07-24 15:31:52,637 INFO HuoBi service.py.on_message:56|<订阅>Topic:market.bchusdt.kline.1min订阅成功 Time:2018-07-24 15:31:52.400000 ##
2018-07-24 15:31:52,637 INFO HuoBi service.py.on_message:56|<订阅>Topic:market.bchusdt.kline.60min订阅成功 Time:2018-07-24 15:31:52.400000 ##
2018-07-24 15:31:52,638 INFO HuoBi service.py.on_message:56|<订阅>Topic:market.bchusdt.kline.1day订阅成功 Time:2018-07-24 15:31:52.400000 ##
2018-07-24 15:31:52,638 INFO HuoBi service.py.on_message:56|<订阅>Topic:market.ethusdt.kline.1min订阅成功 Time:2018-07-24 15:31:52.400000 ##
2018-07-24 15:31:52,638 INFO HuoBi service.py.on_message:56|<订阅>Topic:market.ethusdt.kline.60min订阅成功 Time:2018-07-24 15:31:52.400000 ##
2018-07-24 15:31:52,639 INFO HuoBi service.py.on_message:56|<订阅>Topic:market.ethusdt.kline.1day订阅成功 Time:2018-07-24 15:31:52.400000 ##
2018-07-24 15:31:52,639 INFO HuoBi service.py.on_message:56|<订阅>Topic:market.etcusdt.kline.1min订阅成功 Time:2018-07-24 15:31:52.400000 ##
2018-07-24 15:31:52,928 ERROR HuoBi handler.py.run:48|-DB[md_min1_tick_bc] exception:threads can only be started once
Traceback (most recent call last):
File "/usr/local/python3/lib/python3.6/site-packages/huobitrade/handler.py", line 44, in run
self.handle(msg)
File "/home/pub/HuobiFeeder/huobifeeder/backend/handler.py", line 91, in handle
self.save_md(data)
File "/usr/local/python3/lib/python3.6/site-packages/prodconpattern/init.py", line 40, in _call
self.start()
File "/usr/local/python3/lib/python3.6/threading.py", line 842, in start
raise RuntimeError("threads can only be started once")
RuntimeError: threads can only be started once

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.