I have generated request_token by opening a login link in the browser and then log in to kite. Copied request_token and pasted in my code and I am getting Invalid Checksum Error,
data = kite.generate_session(reqTkn, api_secret=apiSecret)
Your quick revert is always appreciated and graceful !!
Output on terminal : Please enter Token : Created new window in existing browser session. QgqBkKAJhx9cy0Yh8OYK0QhnPgAhlHUM DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:443 DEBUG:urllib3.connectionpool:https://api.kite.trade:443 "POST /session/token HTTP/1.1" 403 None Traceback (most recent call last): File "webrowser.py", line 52, in data = kite.generate_session(reqTkn, api_secret=apiSecret) File "build/bdist.linux-x86_64/egg/kiteconnect/connect.py", line 232, in generate_session File "build/bdist.linux-x86_64/egg/kiteconnect/connect.py", line 701, in _post File "build/bdist.linux-x86_64/egg/kiteconnect/connect.py", line 766, in _request kiteconnect.exceptions.TokenException: Invalid checksum.
It means either your api_key or api_secret or request token is wrong.
If you are sure that your api_key and api_secret are correct as mentioned on the developers console then you can check out more details about request token here.
If you are sure that your api_key and api_secret are correct as mentioned on the developers console then you can check out more details about request token here.