historical data

kevalthummar
I am not geting up to date historical Data. only got data till 5:30 pm of mcx crude oil also interval is half hour to half hour(ex for 2 hours responded 17:30 to 19:30,where as in app it shows up to date with appropiate time period like 17:00 to 19:00) as get in kite web app.
const toDate = new Date()
const formDate = new Date()
formDate.setMonth(toDate.getMonth() - 1)

kc.getHistoricalData("65008903", "2hour", formDate, toDate, true)
.then(function (response) {
console.log(JSON.stringify(response))
})
.catch(function (err) {
console.log(err)
})
Sign In or Register to comment.