Giter Site home page Giter Site logo

cryptolagom / thorcryptocurrencyquant Goto Github PK

View Code? Open in Web Editor NEW
201.0 16.0 63.0 1.64 MB

🚀基于Python/JavaScript的数字货币量化交易策略分享,开源

Python 99.90% JavaScript 0.10%
bitmex okex huobipro binance quant bitcoin ether ethereum

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

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.

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的,对于入口参数不是很懂,能否在对接方式给个教程呢,谢谢

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.