GETTING permission exception while getting historical data

Naresh
com.zerodhatech.kiteconnect.kitehttp.exceptions.PermissionException
at com.zerodhatech.kiteconnect.kitehttp.KiteResponseHandler.dealWithException(KiteResponseHandler.java:60)
at com.zerodhatech.kiteconnect.kitehttp.KiteResponseHandler.handle(KiteResponseHandler.java:20)
at com.zerodhatech.kiteconnect.kitehttp.KiteRequestHandler.getRequest(KiteRequestHandler.java:69)
at com.zerodhatech.kiteconnect.KiteConnect.getHistoricalData(KiteConnect.java:604)
at com.naresh.kite.Test.main(Test.java:149)


HistoricalData historicalData = kiteconnect.getHistoricalData(from, to, "245958404", "15minute", false);
  • rakeshr
    @Naresh
    You need to subscribe to Historical APIs to use (it has an extra charge of 2000 per month).
    To subscibe, you can go to app details page in developer login and on the right side, there is a section for ADD-ONs. You can subscribe Historical APIs from there.
  • sanjeevg
    I have subscribed to Historical APIs to use by paying extra Rs 2000 but still getting GETTING "permission exception while getting historical data"
  • sanjeevg
    I recreated the access token and then rerun, it worked fine.
This discussion has been closed.