whenever i run the dhan_websocket.py file it shows me
Reading existing file all_instrument 2025-10-20.csv
Watchlist changed. Reconnecting the feed…
Disconnected from WebSocket feed.
WebSocket connection error: server rejected WebSocket connection: HTTP 400
Reconnecting Again…
this error i update the client_id and token_id also
Hey @atanu_banerjee 
We’re unable to fully understand your query based on the details shared. If you’re trying to connect to the WebSocket, please follow the steps below:
- Install the DhanHQ library using:
pip install dhanhq==2.1.0
- Refer to the GitHub library for WebSocket market feed usage:
https://github.com/dhan-oss/DhanHQ-py
If this isn’t what you’re looking for, please share more details with us at help@dhan.co so we can assist you better.