☰
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
15.3K
All Categories
0
Incidents
185
Node JS client
52
Go client
868
.Net API client
407
Kite Publisher
557
.Net / VBA / Excel (3rd party)
509
Algorithms and Strategies
1.1K
Java client
1.3K
API clients
410
PHP client
4.4K
Python client
369
Mobile and Desktop apps
1.5K
Market data (WebSockets)
3.7K
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.