It looks like you're new here. If you want to get involved, click one of these buttons!
ws = websocket.WebSocketApp(f"wss://ws.kite.trade?api_key={api_key}&access_token={access_token}",on_message=on_message
# Initialize a websocket connection
ws = websocket.WebSocketApp(
f"wss://ws.kite.trade?api_key={api_key}&access_token={access_token}",
on_message=on_message