Lagging data in fyers web socket? Need Help

When I run the fyers web socket to get the data of bank nifty options (ABC strike price) and put the bank nifty chart of the same abc strike price side by side then I clearly see that the chart shows the data before the web socket data. Also I noticed that the web socket misses some data which I can see in the chart movement.

How to fix this?

OR

Is this normal, Web Socket is unreliable?

Hi @amitkumar.ppt208-w3m ,

Kindly let us know which api version you are using ?

Hi, I am using fyers api v2

Hi @amitkumar.ppt208-w3m ,
Kindly upgrade to API V3.
This is a better and updated version of API V2 and we fixed many things in APIV3 related to websockets.
In API V3 you will not get this issue.

Hope it will help thanks