Hi, I tried to find websocket API documentation in Bittrex but only api I see is RESTFUL.
I want to utilize WSS on these scripts in my python program.
Where can I find it?
I've done Poloniex and Bitfinex but I could not figure out Bittrex.
I use websocket package in python
websocket.WebSocketApp("wss://socket.bittrex.com/signalr",
on_message = on_message,
on_close = on_close,
on_open = on_open)
It disconnect right away. It shows me handshake status 400. I believe I have to send ['CoreHub']
but I can't figure out what is this argument for.
Also when you send command to the server , do you only send {"subscribe":"BTC-USD"}?
If you have some document about socket please share with me.
Hi, I tried to find websocket API documentation in Bittrex but only api I see is RESTFUL. I want to utilize WSS on these scripts in my python program. Where can I find it? I've done Poloniex and Bitfinex but I could not figure out Bittrex.
I use websocket package in python websocket.WebSocketApp("wss://socket.bittrex.com/signalr", on_message = on_message, on_close = on_close, on_open = on_open)
It disconnect right away. It shows me handshake status 400. I believe I have to send ['CoreHub'] but I can't figure out what is this argument for. Also when you send command to the server , do you only send {"subscribe":"BTC-USD"}? If you have some document about socket please share with me.
Thank you for your help. --EDIT --- I figured that I have to use signalr and had to change the address https://socket.bittrex.com/signalr (not sure but it connects) I sent a commmad SubscribeToExchangeDeltas BTC-USD I don't receive any message nor errors. I think it is because I dont know what to put in callback function like client.on('onerror', print_error) "onerror" has to be changed to somethin that server sends. Can you provide the list of command? --------------SOLVED------------------------ [(https://github.com/n0mad01/node.bittrex.api/files/1104308/WebSocketAPI_MarketTracking.docx)] For python use [https://github.com/TargetProcess/signalr-client-py]
Subscribe to specific channel : SubscribeToExchangeDeltas Name of the event handler to receive message : updateExchangeState
Thanks.