Not able to get historical data

AlgoV
I want to get the last years data of NIFTY. When I call the API, I get the following error:
Exception in thread "main" 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:70)
at com.zerodhatech.kiteconnect.KiteConnect.getHistoricalData(KiteConnect.java:800)

Please help.
  • rakeshr
    kiteconnect.kitehttp.exceptions.PermissionException
    You need to add a historical data add-on. Go through the FAQs.
  • AlgoV
    Thanks for your reply. I have subscribed Historical API addon. I am still getting the same error. How long do I have to wait before I can use the API?
  • AlgoV
    I am able to get it now.
  • AlgoV
    I have one more question, can I get historical data of NIFTY option chains which has already expired using the API?
  • sujith
    We only provide continuous day candle data for expired futures instruments only.
Sign In or Register to comment.