can someone help me in accessing the historical candle data from fyers I have written the code but it is showing error
if any one can help me please
I have logged in the terminal of the fyers but still it is giving error
Code
fyers = fyersModel.FyersModel(client_id=client_id, is_async=False, token=access_token, log_path="")
fyers.get_profile()
# Initialize the FyersModel instance with your client_id, access_token, and enable async mode
fyers = fyersModel.FyersModel(client_id=client_id, is_async=False, token=access_token, log_path="")
data = {
"symbol":"NSE:SBIN-EQ",
"resolution":"D",
"date_format":"0",
"range_from":"1690895316",
"range_to":"1691068173",
"cont_flag":"1"
}
response = fyers.history(data=data)
print(response)
output
{'s': 'error', 'code': -300, 'message': ''}
Not being able to fetch the Historical data
18 replies