Problem with historical API for 2015

rajeevr
@sujith

There are inaccuracies for how the historical API works for 2015 and 2018. I've given the outputs from my terminal below. Which format are we supposed to follow?

Case 1: 2015

This request for data in 2015 does not include the data for from_date (2015-01-02) and only gets the data for other days.

>>> kite.historical_data(738561,'2015-01-02','2015-01-06','day')
[{'high': 445.45, 'volume': 4619182, 'low': 437.05, 'date': datetime.datetime(2015, 1, 5, 9, 15, tzinfo=tzoffset(None, 19800)), 'open': 442.5, 'close': 437.93}, {'high': 436.5, 'volume': 8516086, 'low': 416, 'date': datetime.datetime(2015, 1, 6, 9, 15, tzinfo=tzoffset(None, 19800)), 'open': 435, 'close': 418.05}]

Case 2: 2018

This request for data in 2018 does include the data for from_date (2018-03-26).

>>> kite.historical_data(738561,'2018-03-26','2018-03-27','day')
[{'high': 904.3, 'volume': 6047262, 'low': 892.5, 'date': datetime.datetime(2018, 3, 26, 9, 15, tzinfo=tzoffset(None, 19800)), 'open': 893.95, 'close': 901.1}, {'high': 910.75, 'volume': 6939577, 'low': 897, 'date': datetime.datetime(2018, 3, 27, 9, 15, tzinfo=tzoffset(None, 19800)), 'open': 907.2, 'close': 899.8}]
Tagged:
Sign In or Register to comment.