I am developing java app for algo trading. I am using maven in Eclipse for coding. I have included kiteconnect jar in references.
here is extract from my code:
........ SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Date from = new Date(); Date to = new Date(); try { from = formatter.parse("2020-01-01 09:15:00"); to = formatter.parse("2020-01-31 15:30:00"); }catch (ParseException e) { e.printStackTrace(); } HistoricalData historicalData = kiteConnect.getHistoricalData(from, to, "AXISBANK", "minute", false);
........ I have added this dependency in my pom.xml