We have upgraded our files to pip and currently there is no link for Dhan_Tradehull_V3.
If you wish to get the location of the file you can run pip show Dhan-Tradehull and get the location from there.
Hi @Tradehull_Imran sir,
abhi toh code sahi chal raha, maine kuch bhi change nahi kia. Ye kaise possible hai.
Please see the screenshot, ye error aa raha tha. Iska reason kya ho skta hai
Thanks @Tradehull_Imran . Suggested ltp code is working fine.
I see all_instrument 2025… csv is not updating it seems. It is showing last year data and all expired info too.
Is there any update needed?
Also some times giving tsl error
import tsl
ModuleNotFoundError: No module named 'tsl'
Hello @Tradehull_Imran Sir,
Not able to retrieve Option chain for crudeoil. please can you share the code for getting option chain for crudeoil or natgast? My code is mentioned below along with error,
Blockquote
(Pdb++) atm_strike, option_chain = tsl.get_option_chain(Underlying=“CRUDEOIL”, exchange=“MCX”, expiry=expiry_seq, num_strikes=1) Getting Error at Option Chain as No option chain data available for the CRUDEOIL
*** TypeError: cannot unpack non-iterable NoneType object
(Pdb++) pip show Dhan-Tradehull
*** SyntaxError: invalid syntax
I am getting an error like this ----
Traceback (most recent call last):
File “C:\TheAlgoTrader\S6_1st_algo\Dhan codebase S6\Dhan_Tradehull.py”, line 139, in order_placement
orderid = order[“data”][“orderId”]
KeyError: ‘orderId’
What is the problem? I can’t understand. How to fix it?
I want to get the executed price of this order,
or the price of Options strike as per the Order Id/order time for Rejected order.
I tried on my own but didn’t crack it.
Dhan Order Id: 2225040713722
Order Time: 07 Apr 2025 09:15:21
Very Good Morning sir. Last night I have watched the last and latest Session 11, posted yesterday. I am bit disappointed to note that No soild examples are given for rule sets and backtesting.
I sincerely feel that some more explanatory sessions are required on this important subject of application of Backtesting & Optimaization sir.
And how to integrate the Back tested and optimized results with actual Trading algo sir.
Also I have requested to explain on integrating Algo with Telegram, with an example. Kindly do it sir.
Getting below error when i am trying to run my code just now.
Blockquote
Traceback (most recent call last):
File “16. Tick By Tick data storage_abcd.py”, line 5, in
from Dhan_Tradehull import Tradehull
File “C:\Users\abcd\AppData\Local\Programs\Python\Python38\lib\site-packages\Dhan_Tradehull_init_.py”, line 1, in
from .Dhan_Tradehull import Tradehull
File “C:\Users\abcd\AppData\Local\Programs\Python\Python38\lib\site-packages\Dhan_Tradehull\Dhan_Tradehull.py”, line 2, in
import mibian
File “C:\Users\abcd\AppData\Local\Programs\Python\Python38\lib\site-packages\mibian_init_.py”, line 9, in
from scipy.stats import norm
File “C:\Users\abcd\AppData\Local\Programs\Python\Python38\lib\site-packages\scipy\stats_init_.py”, line 485, in
from .stats_py import *
File “C:\Users\abcd\AppData\Local\Programs\Python\Python38\lib\site-packages\scipy\stats_stats_py.py”, line 39, in
from scipy.spatial.distance import cdist
File "C:\Users\abcd\AppData\Local\Programs\Python\Python38\lib\site-packages\scipy\spatial_init.py", line 105, in
from ._kdtree import *
File “C:\Users\abcd\AppData\Local\Programs\Python\Python38\lib\site-packages\scipy\spatial_kdtree.py”, line 4, in
from ._ckdtree import cKDTree, cKDTreeNode
File “ckdtree.pyx", line 10, in init scipy.spatial.ckdtree
File "C:\Users\abcd\AppData\Local\Programs\Python\Python38\lib\site-packages\scipy\sparse_init.py", line 283, in
from . import csgraph
File "C:\Users\abcd\AppData\Local\Programs\Python\Python38\lib\site-packages\scipy\sparse\csgraph_init.py”, line 185, in
from .laplacian import laplacian
File “C:\Users\abcd\AppData\Local\Programs\Python\Python38\lib\site-packages\scipy\sparse\csgraph_laplacian.py”, line 7, in
from scipy.sparse.linalg import LinearOperator
File "C:\Users\abcd\AppData\Local\Programs\Python\Python38\lib\site-packages\scipy\sparse\linalg_init.py", line 120, in
from .isolve import *
File "C:\Users\abcd\AppData\Local\Programs\Python\Python38\lib\site-packages\scipy\sparse\linalg_isolve_init.py", line 4, in
from .iterative import *
File “C:\Users\abcd\AppData\Local\Programs\Python\Python38\lib\site-packages\scipy\sparse\linalg_isolve\iterative.py”, line 11, in
from scipy.sparse.linalg._interface import LinearOperator
File “”, line 991, in _find_and_load
File “”, line 975, in _find_and_load_unlocked
File “”, line 671, in _load_unlocked
File “”, line 779, in exec_module
File “”, line 911, in get_code
File “”, line 580, in _compile_bytecode
ValueError: bad marshal data (unknown type code)
Blockquote
D:>pip show Dhan-Tradehull
Name: Dhan_Tradehull
Version: 3.0.6
Summary: A Dhan Codebase from TradeHull