issue with historical data

saket2095
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

using this function,

public static HistoricalData getHistory(KiteConnect kiteConnect, String fromDateTime, String toDateTime, String insTkn, String interval) throws KiteException,IOException,JSONException{

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);
}

kindly help as soon as possible :smile:
  • sujith
    A third-party app can't show historical data served by us. Please contact compliance on kiteconnect(at)zerodha.com
  • saket2095
    saket2095 edited August 2019
    @sujith but i had subscribed to it in my dashboard and paid rs.2000
Sign In or Register to comment.