☰
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
153
Node JS client
40
Go client
793
.Net API client
378
Kite Publisher
537
.Net / VBA / Excel (3rd party)
457
Algorithms and Strategies
993
Java client
1.1K
API clients
404
PHP client
4K
Python client
346
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.3K
General
In this Discussion
August 2019
sujith
August 2019
ZI4453
headers
ZI4453
August 2019
in
Python client
please make changes whereever i am mistaken
headers = {'Content-type': 'application/json'}
Login_kite_session='
https://api.kite.trade/session/token'
data={"api_key":'123458',"request_token":'yyy986',"checksum":'zzz'}
response=requests.post(Login_kite_session,data=data,headers=headers)
print(response.text)
header_authorisation={'Content-type': 'application/json','Authorization': 'token xxx:yyy'}
check_profile='
https://api.kite.trade/user/profile'
data={"api_key":'123458',"request_token":'yyy986',"checksum":'zzz'}
response_1=requests.post(Login_kite_session,data=data,headers=header_authorisation)
print(response_1.text)
Tagged:
python client request_token login connect
ZI4453
August 2019
Updated session request-
headers = {'Content-type': 'application/json','Version':'X-Kite-version: 3'}
Login_kite_session='
https://api.kite.trade/session/token'
data={"api_key":'123458',"request_token":'yyy986',"checksum":'zzz'}
response=requests.post(Login_kite_session,data=data,headers=headers)
print(response.text)
sujith
August 2019
You can take a look at this
here
.
ZI4453
August 2019
i got above infor from there only..please confirm if placed headers properly.....rest i should be able to take care
@sujith
Sign In
or
Register
to comment.
headers = {'Content-type': 'application/json','Version':'X-Kite-version: 3'}
Login_kite_session='https://api.kite.trade/session/token'
data={"api_key":'123458',"request_token":'yyy986',"checksum":'zzz'}
response=requests.post(Login_kite_session,data=data,headers=headers)
print(response.text)
@sujith