PermissionException: Insufficient permission for that call when fetching historical data

manishchaks
Hi, I have the following code for fetching historical data:
interval = 'minute'
instrument_token = 260105
start_time = datetime.now().replace(hour=9, minute=15, second=0, microsecond=0)
end_time = datetime.now().replace(hour=9, minute=45, second=0, microsecond=0)
data = kite.historical_data(instrument_token, start_time, end_time, interval)
However, when I execute this, I get the error:

kiteconnect.exceptions.PermissionException: Insufficient permission for that call.

I think Historical data is enabled for the app that I am working on. How do I get this enabled?

Regards,
Manish
Sign In or Register to comment.