stack trace ---------------- com.zerodhatech.kiteconnect.kitehttp.exceptions.NetworkException at com.zerodhatech.kiteconnect.kitehttp.KiteResponseHandler.dealWithExce ption(KiteResponseHandler.java:58) at com.zerodhatech.kiteconnect.kitehttp.KiteResponseHandler.handle(KiteR esponseHandler.java:20) at com.zerodhatech.kiteconnect.kitehttp.KiteRequestHandler.getRequest(Ki teRequestHandler.java:69) at com.zerodhatech.kiteconnect.KiteConnect.getHistoricalData(KiteConnect .java:604)
This could be because by the time candle is fetched from the database the request is timing out. We recommend using websocket data to generate live candles at your end. You can check out this thread to get started.
you are right, creating 1 min candles from the web socket ticks, solves many problems once for all..! I am using historical candles as a stop gap solution, till my system stabilizes, shortly I will moving to the websocket tick data.