data geting websocket

how to get live ohlc data using websocket in python function like this

def custom_message(msg):
     print (f"Custom:{msg}") 

Hi @akOMEaqfAb ,

Please modify your custom_message as below. It will help to you.
Please check this code :

I hope it will help.
Thanks