I am trying to import DhanSDK but following error occurs
C:/Users/58795/AppData/Local/Programs/Python/Python312/python.exe “h:/My Drive/Programming/Cryo/Dynamic.py”
Traceback (most recent call last):
File “h:\My Drive\Programming\Cryo\Dynamic.py”, line 1, in
import DhanSDK
ModuleNotFoundError: No module named ‘DhanSDK’
Hello @Trading_Buoy
Welcome to MadeForTrade community!
Can you confirm which code are you referring to? There is no DhanSDK module, you need to use DhanFeed module.
You can refer to sample code here: GitHub - dhan-oss/DhanHQ-py: The official Python client for communicating with the Dhan API.
Hello, Sir I used the above link: GitHub - dhan-oss/DhanHQ-py: The official Python client for communicating with the Dhan API.
But while running , I am getting the below error:
DhanFeed.init() missing 1 required positional argument: ‘subscription_code’
How to get “subscription_code”
Hello @Puran_Singh
Can you tell me what are you adding on the function?