I am trying to get 30minute historical data using following .net client code. I am able to pull data successfully however no matter what time of day I am executing this call, I always get last candle with timestamp of 5.45AM or sometimes 6.45AM. of that date. For example if I execute this code at 3.00PM of 19th-Sept I got data till 6.45AM of 19th-Sept.
var historicalData30MinTimeframe = kite.GetHistoricalData(instrument.InstrumentToken.ToString(), indianTime.AddDays(-20), indianTime, "30minute", false);