have logged in to system using log in code now when I am trying to fetch data getting this error “NameError: name ‘fyers’ is not defined”.. How to resolve it , I am using V2 API
Hi Shailesh,
could you share the code, would be helpful to debug.
Code:
data = {“symbol”:“NSE:SBIN-EQ”,“resolution”:“D”,“date_format”:“0”,“range_from”:“1622097600”,“range_to”:“1622097685”,“cont_flag”:“1”}
fyers.history(data)
Error: Exception has occurred: NameError
name ‘fyers’ is not defined
File “C:\Users\Abhijeet\Documents\Python\TFU_Strategy\Test.py”, line 3, in
fyers.history(data)
NameError: name ‘fyers’ is not defined