☰
Login
Signup
Home
›
Node JS 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.2K
All Categories
0
Incidents
163
Node JS client
46
Go client
807
.Net API client
386
Kite Publisher
538
.Net / VBA / Excel (3rd party)
468
Algorithms and Strategies
1K
Java client
1.1K
API clients
408
PHP client
4.1K
Python client
352
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.4K
General
In this Discussion
May 10
sanjayssk
getHistoricalData gets error "invalid from date"
sanjayssk
May 9
in
Node JS client
I tried many things including the following hard coded from and to parameters. But in all cases, I'm getting "invalid from date".
const NIFTY_TOKEN = 256265; // NIFTY index token
const INTERVAL = "minute"; // 1m interval
const TIMEZONE = "Asia/Kolkata";
(async () => {
const from = `2025-05-08 09:15:00`;
const to = `2025-05-08 15:30:00`;
try {
const candles = await kc.getHistoricalData(NIFTY_TOKEN, from, to, INTERVAL, false);
.....
catch (err) {
console.error("❌ Failed to fetch historical data:", err.message);
}
I'm using it today and specifying yesterday's date.
Other APIs that I tried are working fine. What is wrong in my usage?
Thanks
Tagged:
getHistoricalData
sanjayssk
May 10
Oops. My bad. The sequence of parameters was coded wrong in a hurry. Fixed. Working.
This discussion has been closed.