I am encountering issues on the windows 10 connecting to the dhanhq and access the holding details as the first step. passing the client_id and access_token i am getting the below issue. PS D:\elango\learning\python\dhan\test\dhanweb2> & C:/Users/admin/AppData/Local/Programs/Python/Python311/python.exe d:/Elango/Learning/Python/Dhan/Test/DhanVSCode1/sample_dhan.py
<dhanhq.dhanhq.dhanhq object at 0x000001F71FFB7D50>
Installed python version: python-3.11.9-amd64
installation location: C:\Users\admin\AppData\Local\Programs\Python\Python311
system variable path:
C:\Users\admin\AppData\Local\Programs\Python\Python311
C:\Users\admin\AppData\Local\Programs\Python\Python311\Scripts\
Hello @algotric
Welcome to Dhan Community!
I am not able to get the error message here. Can you print the entire log on terminal and then post it. Also, it will be great if you can tell me at what step are you getting this error (looks like this is on installation of python itself).
I have resolved the issue. My guess is after opening the account I haven’t used it and there were no funds. So, I added funds to my account and placed couple of orders then tried the same and it worked:)
This could help someone, who is new Dhan Api user without adding funds may encounter this issue.
Hello @algotric
We do not have such checks for users who are using APIs. As soon as you subscribe for Dhan APIs for the first time, there are no restrictions on whether you trade or you have money in account or not. This may effect order placement, but nothing other than that.
Anyways, great to know that the issue is resolved either ways.