It looks like you're new here. If you want to get involved, click one of these buttons!
.Net API client
.Net / VBA / Excel (3rd party)
Algorithms and Strategies
Mobile and Desktop apps
Market data (WebSockets)
In this Discussion
WebSocket connection upgrade failed 403 - Forbidden
Just I install kiteconnect using pip install --upgrade kiteconnect, after that I am trying to use the below websocket example
and I getting this error. I confirmed the api_key is correct and access_token I used the request_token from login return URL.
ERROR:kiteconnect.ticker:Connection error: 1006 - connection was closed uncleanly (WebSocket connection upgrade failed (403 - Forbidden))
ERROR:kiteconnect.ticker:Connection closed: 1006 - connection was closed uncleanly (WebSocket connection upgrade failed (403 - Forbidden))
Process finished with exit code 0
Can you let us know which version of pykiteconnect are you using?
Are you passing the right api_key and access_token? It seems fine from our end.
Python verision 3.6 and pykiteconnect would be the latest one
KiteTicker("your_api_key", "your_access_token") just I replaced the API Key and Request Token that's it right?
You need to replace access_token in second param not request_token.
Go through this documentation
to understand the flow.
thanks its working now
This discussion has been closed.