☰
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.8K
All Categories
0
Incidents
173
Node JS client
49
Go client
829
.Net API client
394
Kite Publisher
553
.Net / VBA / Excel (3rd party)
486
Algorithms and Strategies
1.1K
Java client
1.2K
API clients
408
PHP client
4.3K
Python client
357
Mobile and Desktop apps
1.5K
Market data (WebSockets)
3.5K
General
In this Discussion
October 28
nagavenij
October 27
PF8492
TokenException: Token is invalid or has expired.
PF8492
October 27
in
Python client
File ~\AppData\Local\Programs\Python\Python313\Lib\site-packages\kiteconnect\connect.py:937, in KiteConnect._request(self, route, method, url_args, params, is_json, query_params)
935 # native Kite errors
936 exp = getattr(ex, data.get("error_type"), ex.GeneralException)
--> 937 raise exp(data["message"], code=r.status_code)
939 return data["data"]
940 elif "csv" in r.headers["content-type"]:
TokenException: Token is invalid or has expired.
PF8492
October 27
I got token from below steps after opening the url
kite.login_url()
Out[20]: '
https://kite.zerodha.com/connect/login?api_key=ctdm69vfvlhu2ig9&v=3'
got this token "DxkmWWbSlDLGjYI3f546hwTrZnlkegqm"
kite.set_access_token("DxkmWWbSlDLGjYI3f546hwTrZnlkegqm")
nagavenij
October 28
You can refer to this
discussion
.
Sign In
or
Register
to comment.
kite.login_url()
Out[20]: 'https://kite.zerodha.com/connect/login?api_key=ctdm69vfvlhu2ig9&v=3'
got this token "DxkmWWbSlDLGjYI3f546hwTrZnlkegqm"
kite.set_access_token("DxkmWWbSlDLGjYI3f546hwTrZnlkegqm")