Error from tradehull "No expiry date found for {name}"

Traceback (most recent call last):
File “C:\Users\rbrun\AppData\Local\Programs\Python\Python38\lib\site-packages\Dhan_Tradehull\Dhan_Tradehull.py”, line 128, in correct_step_df_creation
raise ValueError(f"No expiry date found for {name}")
ValueError: No expiry date found for CANFINHOME
2025-03-05 19:31:11,138 - ERROR - Error processing COROMANDEL: No expiry date found for COROMANDEL

Hi @Brundesh_R ,

Do update to our latest codebase version 3.0.6:

  • Open Command Prompt: Press Win, type cmd, and press Enter.
  • Install Dhan-Tradehull: Run pip install Dhan-Tradehull
  • Confirm the installation by running pip show Dhan-Tradehull

Guide to use the updated codebase:
Video reference : https://www.youtube.com/watch?v=P9iPYShakbA

Refer the below pypi link for more details:
https://pypi.org/project/Dhan-Tradehull/

after updating this error showing i.py
Codebase Version 3
-----Logged into Dhan-----
list index out of range
‘Tradehull’ object has no attribute ‘response’
Traceback (most recent call last):
File “C:\Users\ACER\Documents\Algo\Dependencies.venv\lib\site-packages\Dhan_Tradehull\Dhan_Tradehull.py”, line 75, in get_login
self.instrument_df = self.get_instrument_file()
File “C:\Users\ACER\Documents\Algo\Dependencies.venv\lib\site-packages\Dhan_Tradehull\Dhan_Tradehull.py”, line 90, in get_instrument_file
if (item.startswith(‘all_instrument’)) and (current_date not in item.split(" ")[1]):
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “C:\Users\ACER\Documents\Algo\Dependencies.venv\lib\site-packages\Dhan_Tradehull\Dhan_Tradehull.py”, line 52, in init
File “C:\Users\ACER\Documents\Algo\Dependencies.venv\lib\site-packages\Dhan_Tradehull\Dhan_Tradehull.py”, line 80, in get_login
print(self.response)
AttributeError: ‘Tradehull’ object has no attribute ‘response’
–Return–
[0] > c:\users\acer\documents\algo\dependencies\9_21ema_oi.py(101)()->None
→ pdb.set_trace()
(Pdb++)

Hi @Rahul_kumar6 ,

Can u run pip show Dhan-Tradehull and share a screenshot?