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

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
    • Zerodha
    • PL Capital
    • Angel Broking
    • Dhan
    • Aliceblue
    • Fyers
    • Nuvama
    • IIFL
    • Zebu
    • Finvasia
    • Motilal Oswal
    • Kotak
    • 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

5659 views January 14, 2026 Pritesh 6

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

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
    • Static IP: See below β€œStatic IP Setupβ€œ
    • Click Generate API Key (See screenshots below)

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
    • 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

Static IP Setup

There are two ways to get a Static IP for your trading account:

  • Option A β€” Auto-assign IP (recommended for most users): Our system assigns a dedicated Static IP from our pool.
  • Option B β€” Bring Your Own IP (BYOIP): You supply your own proxy or IPv6 address. Use this if you already have a dedicated VPS or IPv6 block.

Both options are described below.


Option A β€” Auto-assign IP

This is a 2 step process:

1. Create Broker API using any Dummy IP address

  • If IP address is optional during API creation, then keep it blank.
  • Otherwise, use a dummy IP address during API creation.
    • IP Type: IPv4
    • Primary Static IP:
      • You can use this dummy IP generator website. OR
      • You can just google “what is my ip” & enter your IP
      • Note: we will update this later, in the next step
    • Algo Registration Type: Non-Registered
    • API/Algo Category: “Below” or “Less than” 10 orders per second
  • Now add your account in our system (as explained above) & then come back to Step 2 given below.

2. Add your trading account in our system & then get Static IP

Once your account is successfully added in our system, then do the following:

  1. Get Static IP
    • In our system, go to menu (Settings -> Trading Account)
    • Click the “Pencil icon” next to your account to EDIT it
    • Click “Auto-Assign IP” button
  2. Depending on your broker, system will give either an IPv4 or IPv6 static IP
    • IPv4 => Only one primary IP is provided
    • IPv6 => Both primary & secondary IPs are provided
  3. Assign Static IP in our newly created API on broker’s API screen
    • IP Type: IPv6 or IPv4
    • Primary Static IP: (You will be shown in the EDIT screen)
    • Secondary Static IP: (You will be shown in the EDIT screen – only for IPv6)
    • Algo Registration Type: Non-Registered (less than 10 orders / second)

For further help, check this YouTube video showing “How to map Static IP?“

How to map Static IP?

Option B β€” Bring Your Own IP (BYOIP)

Use this option if you have a dedicated VPS, proxy server, or IPv6 address block that you want to use instead of one from our system.

Note: Only one IP source can be active at a time. Activating BYOIP will automatically remove any system-assigned IP, and vice versa.

Step 1: Open the BYOIP setup

  1. Go to Settings β†’ Trading Account
  2. Click the pencil icon next to your account to edit it
  3. Click “Bring Your Own IP”
  4. A setup dialog will appear. The fields shown depend on your platform type:

FieldDescription
Proxy HostIP address or hostname of your proxy server (e.g. 192.168.1.1)
PortPort number your proxy listens on (1–65535, e.g. 3128)
Username(Optional) Proxy authentication username
Password(Optional) Proxy authentication password

Step 2: Save and Apply

  1. Fill in the required fields and click “Save & Apply”
  2. The system will validate your input and apply the IP immediately
  3. On success, you will see your IP displayed with a “Your IP” badge β€” confirming it is your own IP, not a system-assigned one

Editing your IP later

  • Click the “Edit” button (visible next to the “Your IP” badge) to update your proxy or IPv6 address at any time
  • The dialog will open pre-filled with your current values
  • Change what you need and click “Save & Apply” again

Removing your IP

  • Click the “Remove” (unmap) button next to the IP display
  • Confirm the removal
  • The system will clear your custom IP and return the account to the unassigned state
  • You can then either set up BYOIP again or use “Auto-assign IP” to get a system IP

Was this helpful?

6 Yes  No
Related Articles
  • Groww
  • PL Capital
  • Tradejini
  • FlatTrade
  • Supported Brokers
  • Symphony XTS

Β© 2025 Stocks Developer [GSTIN: 27AQMPM1138R1Z6]

Questions? Message us...