☰
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
14.1K
All Categories
0
Incidents
157
Node JS client
41
Go client
795
.Net API client
385
Kite Publisher
537
.Net / VBA / Excel (3rd party)
463
Algorithms and Strategies
1K
Java client
1.1K
API clients
407
PHP client
4.1K
Python client
349
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.4K
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