BitMEX / sample-market-maker

Sample BitMEX Market Making Bot
Apache License 2.0
1.7k stars 758 forks source link

ERROR - ws_thread - [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:841) #125

Open colaperm opened 6 years ago

colaperm commented 6 years ago

Hello!

I try run Marketmaker but had so messages:

INFO - market_maker - BitMEX Market Maker Version: v1.4 2018-06-20 14:17:11,657 - DEBUG - ws_thread - Connecting WebSocket. 2018-06-20 14:17:11,658 - INFO - ws_thread - Connecting to wss://testnet.bitmex.com/realtime?subscribe=quote:XBTUSD,trade:XBTUSD,instrument,order:XBTUSD,execution:XBTUSD,margin,position 2018-06-20 14:17:11,658 - DEBUG - ws_thread - Starting thread 2018-06-20 14:17:11,658 - INFO - ws_thread - Authenticating with API Key. 2018-06-20 14:17:11,659 - INFO - ws_thread - Started thread 2018-06-20 14:17:11,731 - ERROR - ws_thread - [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:841) 2018-06-20 14:17:11,731 - INFO - ws_thread - Websocket Closed 2018-06-20 14:17:12,662 - ERROR - ws_thread - Couldn't connect to WS! Exiting.

Where is problem? Can i resolve it?

Thank's. Cola.

ryanfox commented 6 years ago

Your Python client is not getting a valid security certificate from the server. When I visit testnet.bitmex.com, the cert currently being served to me is valid beginning May 17 of this year, and is valid until May 1 2019. That suggests an issue on your end, rather than a configuration issue with the server.

A couple suggestions: