:~/ebisu$ python3 main.py --strategy OCC
2020-05-05 16:50:17,347 - INFO - Bot Mode : Trade
2020-05-05 16:50:17,348 - INFO - WebSocket is not authenticating.
2020-05-05 16:50:17,350 - INFO - Starting Bot
2020-05-05 16:50:17,351 - INFO - Strategy : OCC
/home/saramg963/.local/lib/python3.6/site-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),
Traceback (most recent call last):
File "/home/saramg963/ebisu/src/init.py", line 94, in retry
/home/saramg963/.local/lib/python3.6/site-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),
ret, res = func()
File "/home/saramg963/ebisu/src/bitmex.py", line 119, in
.User.User_getMargin(currency="XBt").result())
File "/home/saramg963/.local/lib/python3.6/site-packages/bravado/http_future.py", line 271, in result
swagger_result = self._get_swagger_result(incoming_response)
File "/home/saramg963/.local/lib/python3.6/site-packages/bravado/http_future.py", line 124, in wrapper
return func(self, *args, **kwargs)
File "/home/saramg963/.local/lib/python3.6/site-packages/bravado/http_future.py", line 303, in _get_swagger_result
self.request_config.response_callbacks,
File "/home/saramg963/.local/lib/python3.6/site-packages/bravado/http_future.py", line 353, in unmarshal_response
raise_on_expected(incoming_response)
File "/home/saramg963/.local/lib/python3.6/site-packages/bravado/http_future.py", line 422, in raise_on_expected
swagger_result=http_response.swagger_result)
bravado.exception.HTTPUnauthorized: 401 Unauthorized: {'error': {'message': 'Authorization Required', 'name': 'HTTPError'}}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "main.py", line 22, in
bot.run()
File "/home/saramg963/ebisu/src/bot.py", line 127, in run
logger.info(f"Balance : {self.exchange.get_balance()}")
File "/home/saramg963/ebisu/src/bitmex.py", line 107, in get_balance
return self.get_margin()["walletBalance"]
File "/home/saramg963/ebisu/src/bitmex.py", line 118, in get_margin
self.margin = retry(lambda: self.private_client
File "/home/saramg963/ebisu/src/init.py", line 112, in retry
raise FatalError(error)
src.FatalError: 401 Unauthorized: {'error': {'message': 'Authorization Required', 'name': 'HTTPError'}}
If I solve one thing, another problem happened....
help
:~/ebisu$ python3 main.py --strategy OCC 2020-05-05 16:50:17,347 - INFO - Bot Mode : Trade 2020-05-05 16:50:17,348 - INFO - WebSocket is not authenticating. 2020-05-05 16:50:17,350 - INFO - Starting Bot 2020-05-05 16:50:17,351 - INFO - Strategy : OCC /home/saramg963/.local/lib/python3.6/site-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), Traceback (most recent call last): File "/home/saramg963/ebisu/src/init.py", line 94, in retry /home/saramg963/.local/lib/python3.6/site-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), ret, res = func() File "/home/saramg963/ebisu/src/bitmex.py", line 119, in
.User.User_getMargin(currency="XBt").result())
File "/home/saramg963/.local/lib/python3.6/site-packages/bravado/http_future.py", line 271, in result
swagger_result = self._get_swagger_result(incoming_response)
File "/home/saramg963/.local/lib/python3.6/site-packages/bravado/http_future.py", line 124, in wrapper
File "/home/saramg963/.local/lib/python3.6/site-packages/bravado/http_future.py", line 303, in _get_swagger_result self.request_config.response_callbacks, File "/home/saramg963/.local/lib/python3.6/site-packages/bravado/http_future.py", line 353, in unmarshal_response raise_on_expected(incoming_response) File "/home/saramg963/.local/lib/python3.6/site-packages/bravado/http_future.py", line 422, in raise_on_expected swagger_result=http_response.swagger_result) bravado.exception.HTTPUnauthorized: 401 Unauthorized: {'error': {'message': 'Authorization Required', 'name': 'HTTPError'}}
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "main.py", line 22, in
bot.run()
File "/home/saramg963/ebisu/src/bot.py", line 127, in run
logger.info(f"Balance : {self.exchange.get_balance()}")
File "/home/saramg963/ebisu/src/bitmex.py", line 107, in get_balance
return self.get_margin()["walletBalance"]
File "/home/saramg963/ebisu/src/bitmex.py", line 118, in get_margin
self.margin = retry(lambda: self.private_client
File "/home/saramg963/ebisu/src/init.py", line 112, in retry
raise FatalError(error)
src.FatalError: 401 Unauthorized: {'error': {'message': 'Authorization Required', 'name': 'HTTPError'}}
If I solve one thing, another problem happened.... help