sir please use dhanhq 2.0
t Windows [Version 10.0.22631.4391]
(c) Microsoft Corporation. All rights reserved.
C:\Users\Prabhash\Desktop\Dhan\3. Session3 - Codebase\3. Session3 - Codebase\Dhan codebase>py âDhan_codebase usage.pyâ
Traceback (most recent call last):
File âDhan_codebase usage.pyâ, line 6, in
from Dhan_Tradehull import Tradehull
File âC:\Users\Prabhash\Desktop\Dhan\3. Session3 - Codebase\3. Session3 - Codebase\Dhan codebase\Dhan_Tradehull.pyâ, line 1, in
from dhanhq import dhanhq
ModuleNotFoundError: No module named âdhanhqâ
C:\Users\Prabhash\Desktop\Dhan\3. Session3 - Codebase\3. Session3 - Codebase\Dhan codebase>
I am struck here. Pls help in troubleshooting this
import pdb
from Dhan_Tradehull import Tradehull
import pandas as pd
client_code = â----------------â
token_id = â-----------------------------------â
tsl = Tradehull(client_code,token_id)
watchlist = [âAXISBANKâ, âITCâ, âHCLTECHâ, âPOWERGRIDâ, âBPCLâ, âSBILIFEâ, âHINDALCOâ, âADANIENTâ, âWIPROâ, âNESTLEINDâ, âTATAMOTORSâ, âHDFCLIFEâ, âSBINâ, âSUNPHARMAâ, âADANIPORTSâ, âONGCâ, âHDFCBANKâ, âSHRIRAMFINâ, âRELIANCEâ, âTCSâ, âULTRACEMCOâ, âCOALINDIAâ, âKOTAKBANKâ, âBHARTIARTLâ, âHEROMOTOCOâ, âASIANPAINTâ, âTATACONSUMâ, âTITANâ, âTATASTEELâ, âINFYâ, âJSWSTEELâ, âCIPLAâ, âAPOLLOHOSPâ, âTECHMâ, âBRITANNIAâ, âBAJFINANCEâ, âBAJAJFINSVâ, âMARUTIâ, âBAJAJ-AUTOâ, âM&Mâ, âGRASIMâ, âHINDUNILVRâ, âBELâ, âDRREDDYâ, âEICHERMOTâ, âICICIBANKâ, âTRENTâ, âLTâ, âNTPCâ, âINDUSINDBKâ]
for stock_name in watchlist:
chart = tsl.get_intraday_data(stock_name, âNSEâ, 1)
print(stock_name)
pdb.set_trace()
when i run this code then this error come.
Solution plz
Hi @Md_Naquibuddin
Since the markets are closed thus no data.
Hi @Prabhash_Ranjan
No module named dhanhq, means installation issue.
check below link for installation
Hi @Zee2Zahid
check this link
I think thatâs because market is closed, Try the same code on Monday, if the disconnections are too frequent do let me know.
Also Happy Diwali everyone
Happy Diwali to @Tradehull_Imran Sir, @Dhan and to everyone
Thanks @Subhajitpanja ⌠It works in market hoursâŚ
Sir, where can i get session 6 - 1st live Algo. zip file .
please guide me, sirâŚ
Sir @Tradehull_Imran all is right before your eyes, its just the implementation of getting live data using dhan api , i only installed dhanhq package and python version is 3.12.6 and fedora linux âŚplease try to understand i am just trying to get ltp without using excel why is that not possible?
Hello imran sir , session 1-7 my all codes are successfully running now but most of time I get the SSL issue , one guy on our forum who gives some commands i run that and resolve the issue for temporary ,i also tried given steps by you and followed many youtube videos to resolve but error occurs randomly.
Request you to teach stoploss, trailing stop loss, stop loss basis on candles , targets ,partially profit booking, Fibonacci , ATR, stoploss hunting ,demand supply zones,
I know I am expecting a lot (and I mean a lot)⌠but I know youâre the master who can make it all simple as ABC. you know, the whole shebang â in that legendary âImran way,â itâd be a dream come true.
I might be expecting the moon, but hey, I know you can deliver it like a piece of cake!
Sir,
Does that mean that we have to downgrade from dhan 2.0.0 to 1.3.3
Will it work in future
Dear Imran - i am not able to install or run install libraries.bat on my laptop (window) . so pl kindly look into and help me
Hi @Great_Islam
You are using python 3.1.3 , do use python 3.8.0 as in session2
Hi @Kishore007
Do check this link
Try : Market Quote - DhanHQ Ver 2.0 / API Document
This will help you to fetch ltp with rest api calls, no WebSocket and no excel required.
This will supported in upcoming Dhan_Tradehull_V2
Hi @Happy_Life
we donât need to write any algo for it,
This can be done in excel itself on tick by tick basis.
See this one:
Also do send your idea in detail.
Hi @Zee2Zahid
This issue will be addressed in Dhan_Tradehull_v2