I am getting an error when subscribing to websockets. Can someone help me out here ? Please refer to the below snip. If I pass Access Token as it, I get error 209. If I pass access token as AppID:access_token, I get error 17.
Pdb) fyersSocket = ws.FyersSocket(access_token=Accesstoken, run_background=False, log_path=log_path)
(Pdb) fyersSocket.subscribe(symbol=symbol, data_type=data_type)
{‘s’: ‘error’, ‘code’: -17, ‘message’: ‘Could not authenticate the user’}
(Pdb) fyersSocket = ws.FyersSocket(access_token=access_token, run_background=False, log_path=log_path)
(Pdb) fyersSocket.subscribe(symbol=symbol, data_type=data_type)
{‘s’: ‘error’, ‘code’: -209, ‘message’: ‘Please provide the validation parameter’}
Accesstoken = AppID+ “:” + access_token
I’m facing the same issue today.
im also facing same issue today, with the fyers.getHistoricalData API
@sanjay_raju Just in case if you get a solution, let me know. Thanks
I am also getting the same error while using Quotes
data = {“symbols”:“NSE:NIFTY50-INDEX”}
fyers.quotes(data)
{‘s’: ‘error’, ‘code’: -17, ‘message’: ‘Could not authenticate the user’}
Hey everyone can you please re create your access token and check now.
Its working now. Thanks Vikram.
It is working for me as well thanks alot