Binance API How to recieve kline data once per minute

I’m using Binance API WebSocket to get volume data

    s = websocket.WebSocketApp(f"wss://fstream.binance.com/ws/{symbol}_perpetual@continuousKline_1m",on_message = on_message,on_close = on_close)

and this works well and then I get volume data per minute I’m calculating the ratio to 24 hours volume and printing to the screen if the result are bigger than 0.5(this can be change to any other number) so far it’s good but when I run it’s waiting for ratio to get bigger than 0.5 when that happened it’s printing the ratio until it’s not bigger than 0.5 so that is like if ratio bigger than 0.5 at 11:01:10 it keeps printing in 11:01:11 11:01:12 but I do want to get only one result like if its bigger at 11:01:10 and keeps going I don’t want other just 11:01:10 how can I do that

This question is outside the scope of the API and falls within “Programming Advice” which is not the reason for this forum.

Closing the thread.