A Python SDK by LUCIT to use the Binance Websocket API`s (com+testnet, com-margin+testnet, com-isolated_margin+testnet, com-futures+testnet, com-coin_futures, us, tr, dex/chain+testnet) in a simple, fast, flexible, robust and fully-featured way.
ERROR:root:BinanceWebSocketApiConnection->enter(eb542012-f537-40d2-9104-554cb139dcf8, ['kline_1w'], ['maticbtc']) connecting to wss://stream.binance.com:9443/stream?streams=maticbtc@kline_1w error: 2 - string indices must be integers
Hi, I'm running this code:
kline1w = binance_websocket_api_manager.create_stream('kline_1w', params.pair)
and receive this error:
ERROR:root:BinanceWebSocketApiConnection->enter(eb542012-f537-40d2-9104-554cb139dcf8, ['kline_1w'], ['maticbtc']) connecting to wss://stream.binance.com:9443/stream?streams=maticbtc@kline_1w error: 2 - string indices must be integers
What is the solution? Thank you