You can check out the example here. I think your system timezone is not IST. Either you can set it to IST or you need to set the timezone to IST after creating the date object.
It is because the day candles will have a time as 00:00:00 and any request for after that time is considered. Hence you are getting the next day candle.
I think your system timezone is not IST. Either you can set it to IST or you need to set the timezone to IST after creating the date object.
cross verified the timezone, but I already have the IST time zone set on my device.