☰
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.8K
All Categories
0
Incidents
152
Node JS client
39
Go client
793
.Net API client
378
Kite Publisher
537
.Net / VBA / Excel (3rd party)
457
Algorithms and Strategies
992
Java client
1.1K
API clients
402
PHP client
4K
Python client
346
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.3K
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.