Programming

bitmex market maker 처음 실행 시 안 될 때

steloflute 2021. 7. 5. 23:07

bitmex market maker (BitMEX/sample-market-maker: Sample BitMEX Market Making Bot (github.com))

에서 실행했을 때

__on_open() takes 1 positional argument but 2 were given

메시지 나오면서

안 될 때,

 

virtual env 들어가서

pip install websocket-client===0.57.0

하면 해결된다. (참고: on_open() takes 1 positional argument but 2 were given · Issue #16 · bitvavo/python-bitvavo-api (github.com))

 

> pip install websocket-client===0.57.0
Collecting websocket-client===0.57.0
  Downloading websocket_client-0.57.0-py2.py3-none-any.whl (200 kB)
     |████████████████████████████████| 200 kB 2.2 MB/s
Collecting six
  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Installing collected packages: six, websocket-client
  Attempting uninstall: websocket-client
    Found existing installation: websocket-client 1.1.0
    Uninstalling websocket-client-1.1.0:
      Successfully uninstalled websocket-client-1.1.0
Successfully installed six-1.16.0 websocket-client-0.57.0