Websocket not working with NIFTY and BANKNIFTY strikes

Getting below error when connecting to the Websocket.

File “E:\Python\WorkSpace\fyers-app\main1.py”, line 331, in run_process_background_symbol_data

fs.subscribe(symbol=symbol, data_type=data_type)

File “E:\Python\WorkSpace\fyers-app\venv\lib\site-packages\fyers_api\Websocket\ws.py”, line 94, in subscribe

get_symbol_data = self.__construct_send_message(symbol=symbol)

File “E:\Python\WorkSpace\fyers-app\venv\lib\site-packages\fyers_api\Websocket\ws.py”, line 139, in __construct_send_message

symbol_data=symbol["v"]["symbol"]

KeyError: ‘symbol’

Hi @109103006826424930663

Could you please let us know if you’re using API V2 or V3

I am using fyers-apiv2==2.0.5

@109103006826424930663

Please upgrade to API V3 to avoid such errors :
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

Sure, Abhishek. Thank you for the support.