☰
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
14.1K
All Categories
0
Incidents
157
Node JS client
41
Go client
795
.Net API client
385
Kite Publisher
537
.Net / VBA / Excel (3rd party)
463
Algorithms and Strategies
1K
Java client
1.1K
API clients
407
PHP client
4.1K
Python client
349
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.4K
General
POST errors
Prabhath
July 2020
edited July 2020
in
Python client
I am not able to run this command. I checked the api keys & there is no error there. Please tell me where I am wrong
Import hashlib
import requests
api_key=XXX
api_secrets=UUU
request_token=ooo
h = hashlib.sha256(api_key.encode("utf-8") + request_token.encode("utf-8") + api_secret.encode("utf-8"))
checksum = h.hexdigest()
url = '
https://api.kite.trade/session/token'
resp = requests.post(url, {"request_token": request_token,"checksum": checksum})
resp
Output: Out[100]:
Tagged:
login
python
python3.x
Kite Connect API
Sign In
or
Register
to comment.