I HAVE FACE ERROR HTTP 400 FOR Dhan_websocket

Hi @Vikrant_Solanki ,

WebSocket is a old method we used to get data, Now we have upgraded to a easier method to fetch LTP using REST API calls

Refer this video : https://www.youtube.com/watch?v=HLiEpNZSD80

To use these updates:

• Install the required dhanhq version

pip install dhanhq==2.1.0

• Upgrade to the latest Dhan-Tradehull

pip install --upgrade Dhan-Tradehull

• Confirm the version’s for dhanhq if 2.1.0 and Dhan-Tradehull is 3.1.2

pip show dhanhq
pip show Dhan-Tradehull

You can check the full documentation here:
https://pypi.org/project/Dhan-Tradehull/

Hii

The code file in the video link you provided is not opening.

Hi @Vikrant_Solanki ,

The files are no longer available. Do install latest version of codebase by using the steps mentioned above.