I am facing problem with market data websocket for fyers V2
I am able to get live data on the console and the same is getting logged in the log folder path.
But unable to get call for the custom_message function, where I want to process the live data before further usage.
I dont see this custom_message function getting called, below is code I am using for this purpose
def custom_message(self):
print("Custom: " + str(self.response))
ws.websocket_data = custom_message
feedtoken = app_id + ":" + access_key
data_type = 'symbolData'
symbol = ['MCX:CRUDEOIL21NOVFUT']
fyersSocket = ws.FyersSocket(access_token=feedtoken, run_background=False, log_path='C:/python_project')
fyersSocket.subscribe(symbol=symbol, data_type=data_type)
time.sleep(300)
fyersSocket.keep_running()