NetworkExceptions Again in getHistoricalData

yousuf
yousuf edited February 4 in Java client
@sujith

this error is again frequently coming, roughly twice in a minute, thrown by getHistoricalData of kiteconnect
if you remember , we had this problem sometime back (https://kite.trade/forum/discussion/4842/fetching-data-today-is-mostly-networkexceptions#latest)
----
and then from about a week ,I am seeing this again,


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)
  • sujith
    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.
  • sujith
    It may also happen because of a network issue as well.
  • yousuf
    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.
Sign In or Register to comment.