Connect your Dhan account
Algovested places trades in your own Dhan account. To do that, Dhan gives you an access token, a long code that lets us place and close trades for you. It never lets anyone withdraw your money. This takes about two minutes.
Sign in to Dhan Web on a computer or phone browser
Open web.dhan.co and sign in. Use the website, not the Dhan app: tokens made in the app can't be renewed automatically, so they stop working after a day.
Open the API page
Tap your profile picture (top right), then DhanHQ Trading APIs. If you see Request access, tap it; it's free and instant.
Generate an access token
Tap Generate access token, name it “Algovested”, leave the redirect URL empty and confirm. Copy the long token Dhan shows you.
Find your Client ID
It's the 10-digit number shown under your name on the same profile page.
Paste both into Algovested
Go to Account, then Dhan account, paste the Client ID and token, and tap Connect Dhan. We check that the token is valid and belongs to that Client ID before saving it.
Good to know
- Dhan tokens normally last 24 hours. For tokens made on Dhan Web, we renew them automatically before they expire.
- If your token stops working, your Home page shows a warning. Just paste a new one.
- You can disconnect at any time from the Account page, and we delete the token immediately.