Websocket Significant Delay with miniticker spot prices

Hi All, I have been comparing prices from websocket !miniTicker@arr to real-time spot prices. After I connect to socket = wss://stream.binance.com:9443/ws/!miniTicker@arr, I realize prices are updated with a huge delay (sometimes in 20, 30 minutes) after the trades occur. This is a significant gap. How do I get closer to real-time price changes?

Should I frequently keep disconnecting and reconnecting the websocket?
Or, instead of miniTicker@arr, do I need to follow each individual ticker with symbol@trade ?

My simple python script is below:
def on_message(ws, m):

def datastream():
socket = f’wss://stream.binance.com:9443/ws/!miniTicker@arr’
ws = websocket.WebSocketApp(socket,on_message=on_message)


That stream is for 24 hours stats, doesn’t give the current real-time spot prices:


24hr rolling window mini-ticker statistics for all symbols that changed in an array. These are NOT the statistics of the UTC day, but a 24hr rolling window for the previous 24hrs.

For current prices, you could use https://binance-docs.github.io/apidocs/spot/en/#trade-streams

Many thanks @aisling2 !. I had the impression that since !miniTicker@arr has an update Speed: 1000ms, I should be able to monitor all Market Mini Tickers with a lag of 1000ms which wasn’t the case at all. I got the same issue with Kline/Candlestick too. The prices are translated into candlesticks with a significant delay.