python websocket multiple socket

  python, websocket

When we try to take info about a pair with websocket stream we use

    ws = websocket.WebSocketApp("wss://fstream.binance.com/ws/[email protected]",on_message=on_message,on_close=on_close)
    ws.run_forever()

and works well but with this code we can only take one pairs info I need to get couple of them in same time how can I do that I’ve checked thread module for that but couldn’t find what I was looking for can u guys help me or tell me where should I look to learn this

Source: Python Questions

LEAVE A COMMENT