Websocket returning same data except ltp

Hi Team,

I am running my test code on websocket but receiving same data except ltp for all callback messages. Attaching code and screenshot of output for the same. I am also attaching a screenshot of DB where I am writing the file, it can be seen that timstamp, vol_traded are same for all rows except ltp.

stocks=[‘MCX:SILVERMIC24FEBFUT’]
from fyers_apiv3.FyersWebsocket import data_ws

def onmessage(message):

print(message)

def onerror(message):

print("Error:", message)

def onclose(message):

print("Connection closed:", message)

def onopen():

data_type = "SymbolUpdate"

symbols = stocks

fyers.subscribe(symbols=symbols, data_type=data_type)

fyers.keep_running()

fyers = data_ws.FyersDataSocket(

access_token=ws_access_token,       # Access token in the format "appid:accesstoken"

log_path="",                     # Path to save logs. Leave empty to auto-create logs in the current directory.

litemode=False,                  # Lite mode disabled. Set to True if you want a lite response.

write_to_file=False,              # Save response in a log file instead of printing it.

reconnect=True,                  # Enable auto-reconnection to WebSocket on disconnection.

on_connect=onopen,               # Callback function to subscribe to data upon connection.

on_close=onclose,                # Callback function to handle WebSocket connection close events.

on_error=onerror,                # Callback function to handle WebSocket errors.

on_message=onmessage             # Callback function to handle incoming messages from the WebSocket.

)

fyers.connect()

Hi @nikhil.sharma.kncpz6t3
Please upgrade to latest version of fyers-apiv3

Yes @Z4PBvkQGyF , the code is running on fyers-apiv3 only

Hi @Z4PBvkQGyF , two questions on api version upgrade:

  1. Are all the updates not backward compatible?
  2. If they are not, where can I monitor such version upgrades?

Hi
Check this
https://pypi.org/project/fyers-apiv3/

https://myapi.fyers.in/docsv3#tag/Change-Log

Thanks. So no announcement or alert for this, we need to monitor by ourselves?

Hi @nikhil.sharma.kncpz6t3
noted your point.