☰
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.2K
All Categories
0
Incidents
183
Node JS client
52
Go client
868
.Net API client
407
Kite Publisher
557
.Net / VBA / Excel (3rd party)
508
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
Getting '200 none' while trying to fetch historical data
mkhushwali
March 2018
edited March 2018
in
Python client
import requests
headers = {
'X-Kite-Version': '3',
'Authorization': 'token yyyyyyy:xxxxx',
}
params = (
('from', '2016-12-28 09:30:00'),
('to', '2017-01-01 10:30:00'),
)
response = requests.get('
https://api.kite.trade/instruments/historical/779521/minute'
, headers=headers, params=params)
print (response)
Output:
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade
DEBUG:urllib3.connectionpool:
https://api.kite.trade:443
"GET /instruments/historical/779521/minute?from=2016-12-28+09%3A30%3A00&to=2017-01-01+10%3A30%3A00 HTTP/1.1" 200 None
Sign In
or
Register
to comment.