Rest of the apis work but not the history, Even yr sample code not working
data = {"symbol":"NSE:SBIN-EQ","resolution":"D","date_format":"0","range_from":"1622097600","range_to":"1622097685","cont_flag":"1"}
x =fyers.history(data)
{'s': 'error', 'code': -17, 'message': 'Could not authenticate the user'}
It used to work.
following apis work fine but not the history
print(fyers.positions())
print(fyers.get_profile())
print(fyers.tradebook())
print(fyers.positions())
print(fyers.holdings())
print(fyers.funds())
print(fyers.orderbook())