• Home
  • Products
    • Product Info
    • User Guide
  • Help
    • Documentation
    • Knowledge Base
    • FAQ
  • Company
    • About Us
    • Contact Us
  • Login
  • Home
  • Products
    • Product Info
    • User Guide
  • Help
    • Documentation
    • Knowledge Base
    • FAQ
  • Company
    • About Us
    • Contact Us
  • Login

AutoTrader Web

home/Documentation/AutoTrader Web
Expand All Collapse All
  • Index
  • Getting Started
  • Portfolio Management System (PMS)
  • Master-Child
  • PMS vs Master-Child
  • Trading View
  •  Supported Brokers
    • Groww
    • Symphony XTS
    • Sharekhan
    • Zerodha
    • PL Capital
    • Angel Broking
    • Dhan
    • Aliceblue
    • Fyers
    • Nuvama
    • IIFL
    • Zebu
    • Finvasia
    • Motilal Oswal
    • Kotak Neo
    • Mastertrust
    • Five Paisa
    • Choice Broking
    • FlatTrade
    • Tradejini
    • Upstox
    • SAS Online
    • Profitmart
  •  Client Setup
    • Desktop Client
    • AmiBroker Library
    • Excel Library or Tools
    • Java Library
    • MetaTrader Library
    • C# Library
    • Python Library
    • HTTP REST
  •  User Interface
    • User Registration
    •   Settings
      • General
      • Trading Accounts
      • Pseudo Accounts
      • Group Accounts
      • Security
    •   AutoTrader
      • Activity
      • Instruments
    •   Trading
      • Summary
      • Positions
      • Orders
      • Margins
      • Holdings
      • Trade
    •   User
      • Account
      • Profile
  •  API (Application Programming Interface)
    • Place Regular Order
    • Place Cover Order
    • Place Bracket Order
    • Place Advanced Order
    • Cancel Order
    • Cancel Child Orders
    • Cancel All Orders
    • Modify Order
    • Modify Order Price
    • Modify Order Quantity
    • Square-off Position
    • Square-off Portfolio
    • Read Orders
    • Read Positions
    • Read Margins
    • Read Holdings
    • Read Portfolio Summary
    • Fetch All Trading Accounts
    • Create or Update Trading Account
    • Validate Trading Account Credentials
    • API Parameters
    • API Rate Limits
    • Email Limits
    • Postman
  • Pricing
  • Precautions
  •  Broker Independence
    • API Functions
    • Pseudo Account
    • Instruments (Trading Symbols)
  • Quantity Multiplier
  • Architecture

Dhan

6679 views June 1, 2026 Pritesh 7

Features

Key Features for Dhan Users

Traders and portfolio managers using Dhan can leverage these advanced automation and trading features:

  • πŸ” Auto copy trading on Dhan – Automatically replicate trades across multiple accounts using PMS Copy or Master-Child replication tools.
  • βœ… Multi-account management on Dhan – Handle multiple trading accounts from a unified dashboard.
  • πŸ’Ό Advanced portfolio monitoring for Dhan accounts – Track holdings, margin utilization, and open positions in real-time.
  • πŸ“ˆ Bulk order placement on Dhan – Execute, modify, or cancel orders across accounts instantly.
  • πŸ”Œ Trading API for Dhan – Automate strategies using Python, Java, C#, Excel, or TradingView β€” all with broker-independent syntax.
  • βš™οΈ Cross-broker automation support – Unified setup works seamlessly with Dhan and other supported brokers.
  • πŸ”’ Secure & lightning-fast trading infrastructure – Execute orders with encrypted credentials and low latency using Google’s infrastructure.

πŸ‘‰ Explore the full list of Supported Brokers.

Now, let’s take a look at how to add Dhan account in Stocks Developer.

Let’s understand how to add a Dhan account in AutoTrader Web.

AutoTrader Web uses Dhan trading APIs which are complete FREE.

Demo

Dhan Account API Setup

Platforms

Dhan broker has two methods of API login which is represented by two different platforms given below:

  • DHAN_V2_AT_IPV6
    • Requires one time setup & it does auto-login every day (recommended platform)
    • Problems: Sometimes it fails to login due to unreliable login apis of Dhan (See Common Issues)
    • If you see login errors, you can temporarily switch to β€˜DHAN_V2_IPV6’ platform
    • The login issues have been reported multiple times to Dhan; but they did not fix it
  • DHAN_V2_IPV6
    • Requires you to everyday manually generate access_token in Dhan & copy it into our system
    • Use it when you face issues with automated login platform (DHAN_V2_AT_IPV6)
    • Note: The system is designed to auto-generate tokens for this platform as well. So every morning you can click Validate All button to check if your token is regenerated. Only if you observe failure, then you need to manually generate token.

Platform 1: DHAN_V2_AT_IPV6

Step 1 – Generate API Key

  1. Login to Dhan trading website
  2. Open menu on top right by clicking your profile picture
  3. Click Dhan HQ Trading APIs
  4. By default, it shows you “Access Token“. You need to switch to “API key” by clicking the toggle button.
  5. API Details:
    • Application Name: MyTradingApp
    • Redirect Url: https://webx.stocksdeveloper.in/auth/dhan
    • Postback Url: https://apix.stocksdeveloper.in/postback/dhan
    • Click Generate API Key (See screenshots below)
  6. Static IP
    • API screen has an option to setup static IPs
    • See Step 3 below to understand how to get primary & secondary static IP
    • Register both primary & secondary static IP with Dhan

Step 2 – Setup TOTP

The same API page has an option to setup TOTP.

  • Enable TOTP
  • Scan the QR code in your authenticator app like “Google Authenticator”
  • Important: Copy the TOTP Key (long 15 to 30 random characters)
  • Save TOTP Key as we will need it in next step
  • Click Enable TOTP button

Step 3 – Add your Dhan account

  1. Go to AutoTrader Web menu (Settings -> Trading Accounts)
  2. Click Create button
  3. Select Broker as Dhan
  4. Select Platform as DHAN_V2_AT_IPV6
    • Dhan Client ID
    • Click Auto Assign IP button to get your static IP
    • MPIN
    • TOTP Key
    • 10 digit Phone number registered with Dhan account
    • API Key (shown on Dhan API screen)
    • API Secret (shown on Dhan API screen)
    • Give a nickname
  5. Click Validate & Save
  6. That’s it, you have successfully added your Choice account. Do not forget to read these known limitations.

Screenshots

Dhan API Key Generation

Platform 2: DHAN_V2_IPV6

Step 1 – Generate Access Token

  1. Login to Dhan trading website
  2. Open menu on top right by clicking your profile picture
  3. Click Dhan HQ Trading APIs
  4. By default, it shows you “Access Token“.
  5. API Details:
    • Application Name: MyTradingApp
    • Postback Url: https://apix.stocksdeveloper.in/postback/dhan
    • Click Generate Access Token
  6. Static IP
    • API screen has an option to setup static IPs
    • See Step 2 below to understand how to get primary & secondary static IP
    • Register both primary & secondary static IP with Dhan

Step 2 – Add your Dhan account

  1. Go to AutoTrader Web menu (Settings -> Trading Accounts)
  2. Select Broker as Dhan
  3. Click Create button
  4. Select Platform as DHAN_V2_IPV6
    • Dhan Client ID
    • Enter Access Token
      • Note: Access token expires everyday, remember to re-generate every morning and update
    • Give a nickname
  5. Click Validate & Save
  6. Static IP:
    • Edit your account
    • Click Auto Assign IP button to get your static IP
    • Register both primary & secondary static IP with Dhan
  7. That’s it, you have successfully added your Choice account. Do not forget to read these known limitations.

Common Issues

Here are some common errors faced on Dhan broker

  1. Login failed: Error from Dhan: [DH-906 – Invalid Token]
  2. Login failed: Please regenerate the API token on Dhan & update in our system
  3. Login failed: Error from Dhan: TOTP Validation Failed: [RS-0060] Too many requests, please try again after some time
  4. Login failed: Error from Dhan: Dhan Consent API Failed: [CONSENT_LIMIT_EXCEED] Consent limit Exceeded

Solution

If you observe any of these errors, then please switch the Dhan’s ‘DHAN_V2_IPV6‘ platform which requires you to manually generate ‘access_token’ everyday and update it in our system.

This is explained in the beginning of the demo video given below.

Was this helpful?

7 Yes  No
Related Articles
  • Sharekhan
  • Groww
  • PL Capital
  • Tradejini
  • FlatTrade
  • Supported Brokers

Β© 2025 Stocks Developer [GSTIN: 27AQMPM1138R1Z6]