Giter Club home page Giter Club logo

thorcryptocurrencyquant's Introduction

ThorCryptoCurrency Strategy Library





  • 策略在运行之前将文件名改为英文,为了方便大家理解我特意改成的中文

  • Thor Strategy Library策略可运行的数字货币交易所(其他交易所也可适配后运行)

     * BitMEX :数字货币期货、永续合约
    
     * Bybit :数字货币永续合约
    
     * Binance :数字货币现货
    
     * Binance永续 :数字货币永续合约
    
     * OKEX :数字货币现货
    
     * OKEX永续 :数字货币永续合约
    
     * OKEX期货 :数字货币期货
    
     * Huobi :数字货币现货
    
     * Huobi期货 :数字货币期货
    
     * Huobi永续 :数字货币永续 
    
     * Bitfinex :数字货币现货
    
     * Coinbase :数字货币现货
    
     * Bitstamp :数字货币现货
    

使用说明

  • 策略库内所有代码,都会定期进行更新,以适应交易所升级与变更
  • 所有策略开箱即用,填写自己的APIKey 与 Sercet,填写参数运行即可
  • 每种策略有不同对应交易所,同一策略根据命名区分交易所,运行时注意查看
  • 主流交易所借助CCXT实现,非主流交易所也适配封装了所有公有私有API,可直接运行
  • 非主流交易所数据格式返回与CCXT数据格式一致,方便数据分析
  • 运行环境Python3,CCXT需自行安装(pip install ccxt)
  • Python建议使用linux系统,借助tmux可以较方便的监控策略运行
  • JavaScript策略基于FMZ运行(原botvs)

贡献代码

ThorCryptoCurrency Strategy Library接受第三方策略开源:

  • 因交易策略的特殊性,不进行直接提交PR方式,如有朋友也想开源自己的交易策略,请加我的微信号:3404034
  • 在经过对策略的验证之后由我上传添加到开源库当中,并且会根据作者意愿对作者进行展示!
  • 策略优化方案, 思路讨论或者遇到问题请提交Issues

版权说明

MIT

thorcryptocurrencyquant's People

Contributors

cryptolagom 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

thorcryptocurrencyquant's Issues

errors after running

Receiving the following errors from mongo it appears. See below:

:~/ThorCryptocurrencyQuant$ python Strategy_main.py on open 11729.0 2020-08-31 12:00:05 0.04635084 2020-08-31 12:00:05 Traceback (most recent call last): File "Strategy_main.py", line 43, in <module> start_.start_transaction() File "/home/nateflanders/ThorCryptocurrencyQuant/GriddingStrategy/Quant.py", line 131, in start_transaction self.col.insert_one(dict) File "/home/nateflanders/kola/lib/python3.6/site-packages/pymongo/collection.py", line 701, in insert_one session=session), File "/home/nateflanders/kola/lib/python3.6/site-packages/pymongo/collection.py", line 615, in _insert bypass_doc_val, session) File "/home/nateflanders/kola/lib/python3.6/site-packages/pymongo/collection.py", line 603, in _insert_one acknowledged, _insert_command, session) File "/home/nateflanders/kola/lib/python3.6/site-packages/pymongo/mongo_client.py", line 1497, in _retryable_write with self._tmp_session(session) as s: File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__ return next(self.gen) File "/home/nateflanders/kola/lib/python3.6/site-packages/pymongo/mongo_client.py", line 1829, in _tmp_session s = self._ensure_session(session) File "/home/nateflanders/kola/lib/python3.6/site-packages/pymongo/mongo_client.py", line 1816, in _ensure_session return self.__start_session(True, causal_consistency=False) File "/home/nateflanders/kola/lib/python3.6/site-packages/pymongo/mongo_client.py", line 1766, in __start_session server_session = self._get_server_session() File "/home/nateflanders/kola/lib/python3.6/site-packages/pymongo/mongo_client.py", line 1802, in _get_server_session return self._topology.get_server_session() File "/home/nateflanders/kola/lib/python3.6/site-packages/pymongo/topology.py", line 488, in get_server_session None) File "/home/nateflanders/kola/lib/python3.6/site-packages/pymongo/topology.py", line 217, in _select_servers_loop (self._error_message(selector), timeout, self.description)) pymongo.errors.ServerSelectionTimeoutError: localhost:27017: [Errno 111] Connection refused, Timeout: 30s, Topology Description: <TopologyDescription id: 5f4d48b3c591e57f6f0e4c93, topology_type: Single, servers: [<ServerDescription ('localhost', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('localhost:27017: [Errno 111] Connection refused',)>]>

Any advice?

需要一个对接教程

看了下 okex的,对于入口参数不是很懂,能否在对接方式给个教程呢,谢谢

Error running

I cannot get the script to run.

After editing files with my API & secret, I use 'python Quant.py' but get returned an error as follows:

~/ThorCryptocurrencyQuant/GriddingStrategy$ python3 Quant.py File "Quant.py", line 95 global base_price ^ SyntaxError: name 'base_price' is assigned to before global declaration

Any advice for proper installation & running?

Thank you in advance.

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.