☰
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.2K
All Categories
0
Incidents
128
Node JS client
38
Go client
769
.Net API client
364
Kite Publisher
532
.Net / VBA / Excel (3rd party)
436
Algorithms and Strategies
972
Java client
1K
API clients
401
PHP client
3.8K
Python client
331
Mobile and Desktop apps
1.3K
Market data (WebSockets)
3.2K
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