Hi @prathmesh_takale ,
Refer the below link from session2–
Hi @prathmesh_takale ,
Refer the below link from session2–
We’re still working on it — connecting with a few firms and finalizing the structure. We’ll also need to upgrade a few key skills to align with prop-quant requirement, like backtesting and some maths.
@akki Great to hear it ![]()
Hi @Tradehull_Imran Sir,
I am getting TypeError: cannot unpack non-iterable NoneType object
if I use below code to fetch option chain
(Pdb) atm_strike,option_chain = tsl.get_option_chain(Underlying = ‘NIFTY’, exchange = ‘INDEX’,expiry=1,num_strikes=10)
Getting Error at Option Chain as ‘NIFTY’
*** TypeError: cannot unpack non-iterable NoneType object
also if I use
(Pdb) option_chain = tsl.get_option_chain(Underlying=“NIFTY”, exchange=“INDEX”, expiry=0, num_strikes=10)
then I get below error
Getting Error at Option Chain as ‘NIFTY’
Can you please suggest a solution over this.
Hi @ddeogharkar ,
The code seems to be working fine, make sure you are using the updated codebase.
Do update to our latest codebase version 3.0.6:
pip install Dhan-Tradehullpip show Dhan-TradehullGuide to use the updated codebase:
Refer the below pypi link for more details:
Video reference :
Hi @Tradehull_Imran Sir,
Yes, it is working now, I was using update codebase but my token was expired.
Thanks for the quick response.
Hi @Tradehull_Imran Sir ,
we are getting option greek (‘delta’) value wrong for weekly expiry strikes Nifty option chain
but we are getting correct value for stocks options with monthly expiry as i use below code
Note: i believe NIFTY 50 and NIFTY asset same while fetching delta value
delta_values = tsl.get_option_greek(strike=25200, expiry=0, asset=‘NIFTY’, interest_rate=10, flag=‘delta’, scrip_type=‘CE’)
@Tradehull_Imran Sir
i am getting error while calling the historical data, timeframe “DAY”.it is workable for few securities but not giving the output for every stocks.
Hello @Tradehull_Imran Sir,
While Installing Library I am getting these error:
ERROR: Could not find a version that satisfies the requirement pandas-ta (from versions: none)
ERROR: No matching distribution found for pandas-ta
Kindly help me out with this problem, so I can proceed further.
Thank you in advance.
for getting option greeks, we can now use option chain provided by API directly. This makes the data accurate, and much faster to access
use this code
atm, option_chain = tsl.get_option_chain(Underlying="NIFTY", exchange="INDEX", expiry=0, num_strikes=20)
Also update the codebase as well
pip install Dhan-Tradehull
Codebase link: Dhan-Tradehull · PyPI
Hi @KLchawla
See if the wrong names does not have a spacebar added to it,
Like this is right, "MOTHERSON"
But this is wrong " MOTHERSON"
and this is wrong "MOTHERSON "
Also share your code as well
send your python version,
on cmd write and send screenshot
python --version
Also you can proceed ahead, this is a minor issue we can skip it for now, and solve when it comes later.
Sir, I somehow solved it. Thank you very much sir.
From your archives, kindly remove Logging installation from library, it caused issue with me.
I am using the Python 3.8.0 as you shared in the sesson 2 latest file.
Scanning SILVERBEES at 19:53:03
Exception in Getting OHLC data as {‘status’: ‘failure’, ‘remarks’: {‘error_code’: ‘DH-905’, ‘error_type’: ‘Input_Exception’, ‘error_message’: ‘Missing required fields, bad values for parameters etc.’}, ‘data’: {‘errorType’: ‘Input_Exception’, ‘errorCode’: ‘DH-905’, ‘errorMessage’: ‘Missing required fields, bad values for parameters etc.’}}
None
I’m getting this error while calling daily historical data
chart_DAY = tsl.get_historical_data(tradingsymbol = name,exchange = ‘NSE’,timeframe=“DAY”)
anybody can help me please ?
sir can u please tell me earlier you used to use python 3.8 version now whatever libraries u have given in bat file that were compatible with the version 3.8 version and in one of your post i saw u used python 3.12 so can we have compatible bat file like talib pandas and all other .thanks in advance
Hi @Surendra_Singh1 @sathwik_natha @soninsunil @Gautam_Singh_Pawar @optionstrader @Mitul_Patel @Godara @SUDIP_NATH @Zee2Zahid @SWARUP_NANDI @Siddhesh_Amrute @Arvind_Dubey @Subhajitpanja
We just launched DhanHQ Algos - a platform where you can subscribe to expert-curated algos with just one click. I think you’ll like what we have built, do check it out - https://private-poc.madefortrade.in/t/introducing-dhanhq-algos-choose-deploy-monitor-expert-built-algo-strategies-on-the-go/57053
Hi @Faisal_E ,
The code seems to be working fine, check the symbol name that has been passed via the code:
Hi @Tradehull_Imran Sir,
Do we have the Open Interest indicator implemented in tsl library?
If yes, can you please provide the code to map the open interest values for options chart.
My previous post on new token expiry time(24h) is deleted without any reply/comment. @Dhan @shraddha @Pratham_Gada
@Tradehull_Imran Sir, am getting the following error in Dhan Websocket execution,
Reading existing file all_instrument 2025-11-04.csv
Watchlist changed. Reconnecting the feed…
Disconnected from WebSocket feed.
WebSocket connection error: no close frame received or sent
Reconnecting Again…
Watchlist changed. Reconnecting the feed…
Please help in fixing the issue.
Getting the below error for a simple script:
This BOT Is Picking New File From Dhan
Got the instrument file
Exception at calling ltp as {‘status’: ‘failure’, ‘remarks’: {‘error_code’: None, ‘error_type’: None, ‘error_message’: None}, ‘data’: {‘data’: {‘806’: ‘Data APIs not Subscribed’}, ‘status’: ‘failed’}}
“Do We Need to Have the DATA API Subscription to utilize the codebase”