import websocket
SOCKET = 'wss://socket.coinex.com/'# This is the problem
def on_open(ws):
print('oppend connection')
def on_close(ws):
print('close connection')
def on_message(ws, message):
print('received message')
ws = websocket.WebSocketApp(SOCKET, on_open=on_open,on_close=on_close, on_message=on_message)
ws.run_forever()
are you sending request parameters?
maybe thats the problem, and also websocket stream is limited to only one market subscription.
I`m trying to build crypto trading bot in coinex, but i can`t find websocket stream link for coinex(for accessing to candle sticks)