gccplus/BITMEX

Errors from redis when trying to run any .py strategy

Opened this issue · 1 comments

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'

@Nynia