ok i installed all these again, but still can’t fetch the real time data.
Hi @yadvendrap2 ,
Itseems you are still using Dhan Codebase version 2.8, kindly delete the offline file Dhan_Traehull_V2.py in the folder and install it via
- Install Dhanhq 2.1.0
pip install dhanhq==2.1.0 - Then install Dhan-Tradehull
pip install Dhan-Tradehull==3.1.2
hi @Tradehull_Imran , thanks for the guidance :). but it seems like they yanked 2.1.0. can install 2.2.0rc1 or 2.1.0 will work fine?
okay i installed 2.1.0 and it is working. thank you @Tradehull_Imran :)))))
also it seems there is some error in getting the available balance, a spelling mistake.
well i received my available balance with a wrong spelling
Hi @DEBJYOTI_GHOSE ,
We are checking on this.
Please confirm which version of Dhan_Tradehull codebase have you been using?
Hi @Algotrader1 ,
1. Install Precompiled Binary:
- Download the matching
.whlfile for your Python version from this unofficial site:
https://www.lfd.uci.edu/~gohlke/pythonlibs/#ta-libExample: If you’re using Python 3.10 (64-bit), downloadTA_Lib‑0.4.0‑cp310‑cp310‑win_amd64.whl
2. Install via pip:
Open your terminal or command prompt where the file is downloaded and run:
pip install TA_Lib‑0.4.0‑cp310‑cp310‑win_amd64.whl
Note - If you are not using talib library, you can remove import talib line and proceed.
@Dhan @Hardik Getting Too many requests error today. As I’m doing once per day, not sure how I’m getting this ![]()
This appears when there is more than 5 incorrect attempts within 5 minutes. You can wait out and try again.
Sir how do we fetch the market depth data of a particular stock option or index option?
@Tradehull_Imran sir I am using 3.1.0 version of Tradehull
correct. However, consent flow should not fail in the first place itself. ya?
FYI… Its failing once in a while
any way, have added a retry after 5 mins.
Hi @DEBJYOTI_GHOSE ,
Do use the updated version of the codebase-
• 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
Hi @Harry ,
Do refer the below thread-
@Tradehull_Imran sir Dhan_Tradehull 3.1.2 version is not working in this file.
thats why I am doing this on older version of codebase file
Hi @DEBJYOTI_GHOSE ,
What issue have you been facing to work on Dhan_Tradehull 3.1.2 version?
Hello @Tradehull_Imran ,
I’ve built an algo trading system using the DhanHQ API and would really appreciate your guidance.
If possible, could you review my code and suggest improvements—especially around implementing a reliable market feed?
Happy to share details or repo. Thanks in advance.







