POST errors

Prabhath
Prabhath 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]:
Sign In or Register to comment.