Getting this error while fetching historical data. Here’s my code
access_token = “”
client_id = “”
fyers = fyersModel.FyersModel(client_id=client_id, is_async=False, token=access_token, log_path=“”)
data = {
"symbol":"NSE:SBIN-EQ",
"resolution":"D",
"date_format":"1",
"range_from":"2024-01-01",
"range_to":"2025-02-01",
"cont_flag":"1"
}
response = fyers.history(data=data)
print(response)
I have given permission to fetch historical data in the api