gccplus / bitmex Goto Github PK
View Code? Open in Web Editor NEWinit
init
Getting an error on every .py strategy file when trying to run, something similar to the following:
python3 test.py /usr/local/lib/python3.6/dist-packages/swagger_spec_validator/validator20.py:53: SwaggerValidationWarning: Found "$ref: #/definitions/UserPreferences" with siblings that will be overwritten. See https://stackoverflow.com/a/48114924 for more information. (path #/definitions/User/properties/preferences) ref_dict['$ref'], '/'.join(path), 2019-08-23 09:14:41,618 - INFO - Connecting to wss://www.bitmex.com/realtime?subscribe=order:XBTUSD,quote:XBTUSD,order:XBTZ19,quote:XBTZ19 2019-08-23 09:14:41,619 - INFO - Authenticating with API Key. 2019-08-23 09:14:42,621 - INFO - Connected to WS. 2019-08-23 09:14:52,625 - INFO - Got all market data. Starting. 2019-08-23 09:14:52,625 - INFO - 从redis同步参数 Traceback (most recent call last): File "test.py", line 471, in <module> robot = GridStrategy() File "test.py", line 58, in __init__ self.price_dist = int(self.redis_cli.hget(self.setting_ht, 'price_dist')) TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
Sorry if I'm misunderstanding, but I actively use bitmex_grid repo, correct me if i'm wrong, but does your repo (the files) integrate into that main repo bitmex_grid with new/improved strategies?
@Nynia
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.