☰
Login
Signup
Home
›
Java client
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Categories
Recent Discussions
Activity
Categories
13.9K
All Categories
0
Incidents
156
Node JS client
40
Go client
793
.Net API client
380
Kite Publisher
537
.Net / VBA / Excel (3rd party)
457
Algorithms and Strategies
996
Java client
1.1K
API clients
404
PHP client
4K
Python client
346
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.3K
General
In this Discussion
July 2023
Amitesh
Historical Data fetching error
Amitesh
July 2023
in
Java client
Hi,
I am using below code to fetch historical data but getting error
Calendar calendar = Calendar.getInstance();
calendar.setTime(new Date());
Date dateTo = calendar.getTime();
calendar.add(Calendar.DAY_OF_YEAR, -2);
Date dateFrom = calendar.getTime();
try {
kiteConnect.getHistoricalData(dateFrom,dateTo, "256265","minute", true, true);
} catch (KiteException | IOException e) {
throw new RuntimeException(e);
}
Error:
Exception: java.lang.RuntimeException: com.zerodhatech.kiteconnect.kitehttp.exceptions.InputException
Please help me to fix the issue
Thanks
Tagged:
HistoricalData
Amitesh
July 2023
edited July 2023
If anyone having same issue:
Solution: kiteConnect.getHistoricalData(dateFrom,dateTo, "256265","minute", false, false);
More details here :
https://kite.trade/docs/connect/v3/historical/#uri-parameters
This discussion has been closed.
Solution: kiteConnect.getHistoricalData(dateFrom,dateTo, "256265","minute", false, false);
More details here : https://kite.trade/docs/connect/v3/historical/#uri-parameters