Closed btcre closed 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.
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.
Fixed.
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.