BitMEX / api-connectors

Libraries for connecting to the BitMEX API.
https://www.bitmex.com/app/restAPI
910 stars 795 forks source link

urlparse #14

Closed harryDevPy closed 7 years ago

harryDevPy commented 7 years ago

Hi there, in the python-swaggerpy the syntax is python3 but in the BitMEXAPIKeyAuthenticator.py there is
'import urlparse' that works on python2 only.

cheers

STRML commented 7 years ago

That project is meant for py2, and will run in it:

$ python2 --version
Python 2.7.13
$ python2 bitmexClient.py
---The BitMEX Object:---
[u'APIKey', u'Announcement', u'Chat', u'Execution', u'Funding', u'Instrument', u'Insurance', u'Leaderboard', u'Liquidation', u'Notification', u'Order', u'OrderBook', u'Position', u'Quote', u'Schema', u'Settlement', u'Stats', u'Trade', u'User']

I just prefer the print() syntax.