Hello,
I have been getting information to build 3m klines with websocket and have found it impossible for some symbols. I have tried all the endpoints and they all give me the same problem.
def ws_trades():
socket = 'wss://stream.binance.com:443/ws/bnbbusd@kline_3m'
def on_message(wsapp,message):
json_message = json.loads(message)
handle_trades(json_message)
def on_error(wsapp,error):
print(error)
wsapp = websocket.WebSocketApp(socket, on_message=on_message, on_error=on_error)
wsapp.run_forever()
It receives information every 2-4s instead of (2) every 3 minutes.
However, if I use another ticker like SHIBDOGE / ADAETH / BELBTC / ADABNB / AAVEBUSD it works perfectly.