Getting error for creating web socket

I am using below part of the code and getting error for creating web socket.

Hi Chaitanya Kalyani,

Kindly make sure you sure using fyers-apiv2 and version is 2.0.7
Version link
If still something goes wrong then you can DM to me, we will solve it.

Thank you

Hello Pankaj,

I am using api v and 2.0.7 only.

api v means which v ?

If you don’t have fyers-apiv2 then kindly install it, using this command

pip install fyers-apiv2

Hello Pankaj i am using api V2 only. Initial i was getting issue for login then your customer care uninstalled previous version and installed latest version only

Hi
Can you share your code with us?

Hello Pankaj,

You need full code??

Hi @chaitanyakalyani.demat-vbz

Can you try once websocket with our given sample code?
Github link

Thanks.

I checked with the provided program by just adding the app id and token still getting the same issue for the web socket.

Hello Pankaj. I am using this part of the code for the login and creating web socket.

Hi @chaitanyakalyani.demat-vbz

Please share your email with @shruthi_shetty
I will help you through call.

Hello Pankaj,

I already sent msg to her along with the same screenshot and a support ticket was also created last week still don’t got any resolution. My ticket id 1069839.

Please ping your email id so that we can have a call.

Hi @chaitanyakalyani.demat-vbz ,

I hope your concern is resolved after the call.
Happy Trading :grinning_face_with_smiling_eyes:

Hello @Z4PBvkQGyF and @shruthi_shetty

Thanks a lot for taking the request on priority and helping to resolve the issue.

After updating the suggested changes I am able to create a Socket and able to fetch the data.

Thanks for the update @chaitanyakalyani.demat-vbz. Happy Trading!

Thank You @shruthi_shetty,

Hopefully, my code part will help others as well for resolving the same error. attaching a snapshot of the updated code.

Websocket helped to make my laggy GUI as faster.