BitMEX / sample-market-maker

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

Error Websocket #25

Closed btcre closed 7 years ago

btcre commented 7 years ago

2017-11-11 08:15:07,198 - INFO - ws_thread - Connecting to wss://www.bitmex.com/realtime?subscribe=quote:XBTZ17,trade:XBTZ17,instrument ,order:XBTZ17,execution:XBTZ17,margin,position 2017-11-11 08:15:07,198 - INFO - ws_thread - Authenticating with API Key. 2017-11-11 08:15:07,200 - INFO - ws_thread - Started thread 2017-11-11 08:15:08,618 - ERROR - ws_thread - Handshake status 403 2017-11-11 08:15:08,618 - INFO - ws_thread - Websocket Closed 2017-11-11 08:15:09,201 - ERROR - ws_thread - Couldn't connect to WS! Exiting.

cowthinker commented 7 years ago

This is not an issue with the websocket, I had the same thing. Since yesterday Bitmex only handles ticksize of 0.0 or 0.5 so you will have to do round(price * 2)/2 everywhere before placing an order.

Check your API keys, error 403 it's because the key is disabled by Bitmex due to too many ticksize errors.

STRML commented 7 years ago

There is no need to add this rounding, we've fixed the tickSize calculations here in the bot. Just merge the upstream changes in.

On 11/10/17 6:18 PM, cowthinker wrote:

This is not an issue with the websocket, I had the same thing. Since yesterday Bitmex only handles ticksize of 0.0 or 0.5 so you will have to do round(price * 2)/2 everywhere before placing an order.

Check your API keys, error 403 it's because the key is disabled by Bitmex due to too many ticksize errors.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/BitMEX/sample-market-maker/issues/25#issuecomment-343633253, or mute the thread https://github.com/notifications/unsubscribe-auth/ABJFP-0Fi6s2tH-4V-XJW-RHMsznxGoUks5s1QPngaJpZM4QaREt.

btcre commented 7 years ago

Fixed.