BitMEX / api-connectors

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

TypeError: __init__() got an unexpected keyword argument 'endpoint' #361

Open foxxcrypto opened 5 years ago

foxxcrypto commented 5 years ago

Hi, i have tried to use websocket to get realtime data, but executing the code returns an error like this : "TypeError: init() got an unexpected keyword argument 'endpoint'",

ws = BitMEXWebsocket(endpoint="https://www.com/api/v1", symbol="XBTUSD", api_key="", api_secret="")

thanks a lot

ghost commented 5 years ago

Same problem, any fix yet ?

parkershamblin commented 4 years ago

To fix this:

  1. Run 'pip uninstall bitmex-websocket'
  2. Run 'pip install bitmex-ws'

Explanation: The 'bitmex_websocket' package on the Python Package Index is completely unrelated to this repo (confusing, I know). But after completing the steps above, you should be good to go.