Facign issue while streaming option data with websocket. Version V2.

While index and stock data stream has no issue. I am facing streaming option data. Can you help me with this issue?

Getting Key error.

symbol_data=symbol[“v”][“symbol”]

KeyError: ‘symbol’

location: Websocket\ws.py, line 139, in __construct_send_message

Hi @golu_vora

Please upgrade to API V3 to avoid such errors :
Docs link : https://myapi.fyers.in/docsv3

and follow code from this github repo

Github Repo : https://github.com/FyersDev/fyers-api-sample-code/tree/sample_v3/v3

Can you provide the solution till i can upgrade my application to V3?

I can stream option data with websocke in API v3, but after 4-5 mins it tells connection to host lost and keeps on retry. Sometime its get connected while many times it is stuck. I never faced this issue in V2. Can anyone help me with this issue?

It is solved after i upgraded

Thank you for the confirmation @golu_vora