Open ghost opened 2 years ago
@mhasanjb Try change the streams to stream_list = ["btcusdt_perpetual@continuousKline_1m", "ethusdt_perpetual@continuousKline_1m"]
And for market data / kline socket, you don't need to authenticate. So you might want to just call ThreadedWebsocketManger() without parameters.
work with code websocket==9.1 and ThreadedWebsocketManager without auth `from binance import Client, ThreadedWebsocketManager from binance.enums import FuturesType
client = Client() twm = ThreadedWebsocketManager() twm.start()
def handle_socket_message(msg): print(msg)
stream_list = ["btcusdt@kline_1m", "ethusdt@kline_1m"] twm.start_futures_multiplex_socket(callback=handle_socket_message, streams=stream_list, futures_type=FuturesType.USD_M) twm.join()`
Describe the bug start_futures_multiplex_socket is not working
My Code
Expected behavior working properly
Environment (please complete the following information):