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)