☰
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
362
Kite Publisher
532
.Net / VBA / Excel (3rd party)
435
Algorithms and Strategies
969
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
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