i am fetching historial data from android using your sample data and passing this details : From : 2019-08-21 09:30:00 T0 : 2019-08-28 10:30:00 Token : 136247044 Interval : 5minute
but getting error : com.zerodhatech.kiteconnect.kitehttp.exceptions.InputException
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Date from = new Date(); Date to = new Date(); try { from = formatter.parse(fromDateTime); to = formatter.parse(toDateTime); }catch (ParseException e) { Log.d("Stock","History : Parse Exception :"+e); e.printStackTrace(); } Log.d("Stock","History : CAlling with :"+from + " >"+to);
return kiteConnect.getHistoricalData(from, to, insTkn, interval, true); }