☰
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
13.2K
All Categories
0
Incidents
128
Node JS client
38
Go client
769
.Net API client
364
Kite Publisher
532
.Net / VBA / Excel (3rd party)
436
Algorithms and Strategies
970
Java client
1K
API clients
401
PHP client
3.8K
Python client
331
Mobile and Desktop apps
1.3K
Market data (WebSockets)
3.2K
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.