Using fyers api i am able to get profile data and positions data but unable to get ltp of stock
fyers.funds()
fyers.positions()
above code is running fine
below code giving error:
{‘s’: ‘error’, ‘code’: -17, ‘message’: ‘Could not authenticate the user’} unable to understand this
data = {“symbol”:“NSE:TATAMOTORS-EQ”,“resolution”:“5”,“date_format”:“0”,“range_from”:str(starttime),“range_to”:str(endtime),“cont_flag”:“1”}
print(fyers.history(data))
data = {“symbols”:“NSE:SBIN-EQ”}
fyers.quotes(data)