KiteConnect.InputException: 'invalid from date'

skymahi
skymahi edited April 2020 in .Net API client
While accessing the historical data i got this issue "KiteConnect.InputException: 'invalid from date'"

List historical = kite.GetHistoricalData(
InstrumentToken: "5633",
FromDate: new DateTime(2016, 1, 1, 12, 50, 0), // 2016-01-01 12:50:00 AM
ToDate: new DateTime(2016, 1, 1, 13, 10, 0), // 2016-01-01 01:10:00 PM
Interval: Constants.INTERVAL_MINUTE,
Continuous: false
);
Plz assist on this!
This discussion has been closed.