Please update the imports in /BitMEXAPIKeyAuthenticator.py and change line 57 to parsedURL = urlparse(url) to assure that there is no ImportError: No module named parse when importing bitmex in python 2. The following code works for python 2 and 3.
try:
from urllib.parse import urlparse
except ImportError:
from urlparse import urlparse
Please update the imports in
/BitMEXAPIKeyAuthenticator.py
and change line 57 toparsedURL = urlparse(url)
to assure that there is noImportError: No module named parse
when importing bitmex in python 2. The following code works for python 2 and 3.For a problem description see: Stackoverflow
Or since you are using
six
: