☰
Login
Signup
Home
›
Python client
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Categories
Recent Discussions
Activity
Categories
14.1K
All Categories
0
Incidents
158
Node JS client
43
Go client
801
.Net API client
386
Kite Publisher
538
.Net / VBA / Excel (3rd party)
466
Algorithms and Strategies
1K
Java client
1.1K
API clients
408
PHP client
4.1K
Python client
349
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.4K
General
Historical data API - Data mismatch
rajeevr
March 2018
in
Python client
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')
[]
Tagged:
Python Client
HistoricalData
Data Errors Historical Data
Sign In
or
Register
to comment.