BitMEXWebsocket error
See original GitHub issueI’m a new user trying to get Market Maker to work.
Have tried on both Ubuntu and Windows with Python v3.5 / 3.6 / 3.7 all with the same result:
2018-08-14 22:26:00,751 - INFO - market_maker - BitMEX Market Maker Version: v1.4
2018-08-14 22:26:00,766 - INFO - ws_thread - Connecting to wss://testnet.bitmex.com/realtime?subscribe=quote:XBTUSD,trade:XBTUSD,instrument,order:XBTUSD,execution:XBTUSD,margin,position
2018-08-14 22:26:00,766 - INFO - ws_thread - Authenticating with API Key.
2018-08-14 22:26:00,766 - INFO - ws_thread - Started thread
2018-08-14 22:26:01,001 - ERROR - _logging - error from callback <bound method BitMEXWebsocket.__on_open of <market_maker.ws.ws_thread.BitMEXWebsocket object at 0x000002317E1452E8>>: __on_open() missing 1 required positional argument: 'ws'
2018-08-14 22:26:01,001 - ERROR - _logging - error from callback <bound method BitMEXWebsocket.__on_message of <market_maker.ws.ws_thread.BitMEXWebsocket object at 0x000002317E1452E8>>: __on_message() missing 1 required positional argument: 'message'
…and then it repeats the missing positional argument line forever more.
My Google-fu is failing me. Anyone have any ideas?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:6
- Comments:13
Top Results From Across the Web
WebSocket API - BitMEX
The BitMEX Websocket supports a very simple multiplexing scheme. Use this in place of many individual connections. The most common use case is...
Read more >BITMEX Websocket connection drops / disconnects despite ...
Every once in a while Bitmex disconnects our websocket connection which forces us to reconnect. However, they provide a connection pool of 40 ......
Read more >websocket fail on bitmex - Google Groups
I got into the following issue by trying to connect to bitmex websocket but stuck for days. h:`:ws://www.bitmex.com "GET ... I got the...
Read more >bitmex-ws - PyPI
Sample adapter for connecting to the BitMEX Websocket API. ... BitMEXWebsocket is the main entry point to connect to the BitMEX websocket API....
Read more >Is BitMEX WebSocket API Down? Check current status and outages
Check BitMEX WebSocket API status. Monitor status changes, problems, and outages in all your services. Get instant notifications.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve gotten it fully working now on windows 10 and ubuntu 16.04 using a conda enviroment with python 3.6. I’m pretty sure someone updated the pip installed version of the bitmex-market-maker, but I’m new to github so I’m not sure how to check. Also I’m pretty sure the issue causing this is a result of whatever bitmex websocket version is coming with the bitmex-market-maker pip install right now. Anyway, this is how I made it work.
how to: 1.) create enviroment with python 3.6 2.) pip install bitmex-market-maker 3.) pip install bitmex-ws 4.) navigate to a working directory, run ‘marketmaker setup’, update the settings.py file with your api info 5.) to run do ‘marketmaker XBTUSD’ (not list format ‘marketmaker [XBTUSD]’ as mentioned in the getting started section)
The [XBTUSD] part is an optional parameter (hence the square brackets), meaning if you leave it out it will run with the default (which is XBTUSD)