{'code': -403, 'message': 'You do not have permission to access this application', 's': 'error'}

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

Hey @apoorvs ,

Could you please check your App dashbaord and see if the required permissions are given for that particular API app .
https://myapi.fyers.in/dashboard