Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BitMEXWebsocket error

See original GitHub issue

I’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://,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 < 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 < 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:closed
  • Created 5 years ago
  • Reactions:6
  • Comments:13

github_iconTop GitHub Comments

wschnellercommented, Aug 19, 2018

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 file with your api info 5.) to run do ‘marketmaker XBTUSD’ (not list format ‘marketmaker [XBTUSD]’ as mentioned in the getting started section)

oisinmacgiollachudacommented, Aug 19, 2018

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)

Read more comments on GitHub >

github_iconTop 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:// "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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found