Historical data API - Data mismatch

rajeevr
I'm trying to extract historical data for January 2016. I encountered a weird error.

>>> kite.historical_data(2674433,'2016-01-01','2016-01-06','15minute')[0]
{'date': datetime.datetime(2016, 1, 4, 9, 15, tzinfo=tzoffset(None, 19800)), 'low': 2995, 'open': 3008.75, 'close': 3019.45, 'volume': 5521, 'high': 3019.45}

>>> kite.historical_data(2674433,'2016-01-01','2016-01-03','15minute')[0]
{'date': datetime.datetime(2016, 1, 1, 9, 15, tzinfo=tzoffset(None, 19800)), 'low': 3004.85, 'open': 3005, 'close': 3018.05, 'volume': 7784, 'high': 3024}

When I extract the data for dates '2016-01-01' to '2016-01-06'. The data starts from 2016-01-04 rather than 2016-01-01. I also noticed the data mismatch with other instruments:

>>> kite.historical_data(424961,'2016-01-01','2016-01-06','15minute')[0]
{'date': datetime.datetime(2016, 1, 1, 9, 15, tzinfo=tzoffset(None, 19800)), 'low': 217.1, 'open': 218.43, 'close': 217.37, 'volume': 121789, 'high': 218.53}

>>> kite.historical_data(424961,'2016-01-01','2016-01-03','15minute')
[]
Sign In or Register to comment.