30minute historical data incorrect timeframe.

pkapare
pkapare edited September 19 in .Net API client
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);


  • sujith
    You need to check what is your system timezone and change it to IST or UTC +530
Sign In or Register to comment.