Unable to fetch any live data from Websockets

I am able to get authorized and use the appid and access token. But still not receiving any websocket data.

        symbol= ["NSE:SBIN-EQ"]
        ws_authorization_token = f"{app_id}:{access_token}"
        kws = ws.FyersSocket(access_token=ws_authorization_token, run_background=False, log_path="")
        print(kws)
        def on_ticks(msg):
            print("ticking")
            print(msg)

        kws.websocket_data = on_ticks
        kws.subscribe(symbol=symbol, data_type="symbolData")
        kws.keep_running()

There is no error printed, no logs on what went wrong, can anyone help?

5 replies