BitMEX / api-connectors

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

AttributeError in config #31

Closed klaasv12 closed 6 years ago

klaasv12 commented 6 years ago

Traceback (most recent call last): File "\bitmex2.py", line 8, in <module> swagger_client.configuration.api_key['api-key'] = 'XXXXX' AttributeError: module 'swagger_client.configuration' has no attribute 'api_key'

Anyone any idea why it is not accepting this?

ghost commented 6 years ago

got the same one!

ryanfox commented 6 years ago

This looks like the auto-generated python client. You should use the one in official-http/: https://github.com/BitMEX/api-connectors/tree/master/official-http/python-swaggerpy

It can also be installed via pip install bitmex.