However, when I try to do the kiteSdk.getHistoricalData(params,instrument,interval); // "from", "to" dates in params Map, "884737" for instrument token,"60minute" for interval I always get a "session timed out". (Same works quite well for the margin details call - kiteSdk.getMargins("equity") with the same access token)
Exception is as follows: com.rainmatter.kitehttp.exceptions.KiteTokenException at com.rainmatter.kitehttp.KiteRequest.dealWithKiteException(KiteRequest.java:255) at com.rainmatter.kitehttp.KiteRequest.getRequest(KiteRequest.java:101) at com.rainmatter.kiteconnect.KiteConnect.getHistoricalData(KiteConnect.java:467) at MyConnect.getHistoricalData(MyConnect.java:143) at MyConnect.run(MyConnect.java:123) at MyConnect.main(MyConnect.java:19)
It always gives a session timeout in case of getHistoricalData. Please help on how to fix this
Hi @vipin, It seems like you haven't subscribed for historical data. For historical data, you need to get add-on subscription which will cost you Rs2000/month.
It seems like you haven't subscribed for historical data.
For historical data, you need to get add-on subscription which will cost you Rs2000/month.