MyAlgoMate
// COPY TRADING · DHAN

Copy trading with Dhan

Place an order once and have it copied into every account you link — between Dhan accounts, or between Dhan and any of 152 other Indian brokers. Dhan can be the master you trade in, or a child that receives the copies, each child sized by its own multiplier.

Does MyAlgoMate's copy trading work with Dhan?

Yes. MyAlgoMate's Copy Trading Software connects to Dhan through DhanHQ API. A Dhan account can be the master — the account you trade in — or a child that receives a copy of every order, and it can copy to or from 152 other Indian brokers. Data API subscription for the master only; children use the free API. The software runs on your own Windows PC or cloud server, so your Dhan logins stay on your machine. MyAlgoMate provides technology only, not investment advice.

// Key facts

Connection
DhanHQ API
As master
Dhan's Trading API is free, but the master needs Dhan's Data API subscription — ₹499 plus taxes a month at the time of writing, billed by Dhan.
As child
Dhan's free API is enough. A child account does not need the Data API subscription.
Static IP
Needed for every Dhan account. Whitelisted with Dhan. Orders from any other IP are rejected with the DH-905 Invalid IP error.
Daily login
Not needed — the software signs Dhan in for you with your TOTP key.
You enter
Client ID, API Key, API Secret and TOTP key
MyAlgoMate
From ₹400 a month per account (+ GST)
Other brokers
Copy to or from 152 other Indian brokers

Last updated:

// HOW IT WORKS

Dhan as the master, Dhan as a child

Copy trading has two roles. The master is the account you trade in; every child gets a copy of each order.

Master

Trade in Dhan, copy everywhere

You place orders in your Dhan account exactly as you do today. The software watches that account and places the same order in each child account — at Dhan or at any other supported broker.

Dhan API as master: Dhan's Trading API is free, but the master needs Dhan's Data API subscription — ₹499 plus taxes a month at the time of writing, billed by Dhan.

Child

Copy into Dhan from anywhere

Your master can be at another broker and this Dhan account follows it, trading the master's quantity times its own multiplier. Nothing is installed for a child account.

Dhan API as child: Dhan's free API is enough. A child account does not need the Data API subscription.

Worth knowing about Dhan

  • Dhan API keys are valid for 12 months. Set a reminder to renew them before they expire.
// BEFORE YOU START

What you need

  • A Windows PC, or a Windows cloud machine you rent, that stays on and connected during market hours.
  • A MyAlgoMate Copy Trading subscription covering your master and the child accounts you want copying.
  • Dhan API access for each Dhan account. As the master: Dhan's Trading API is free, but the master needs Dhan's Data API subscription — ₹499 plus taxes a month at the time of writing, billed by Dhan. As a child: Dhan's free API is enough. A child account does not need the Data API subscription.
  • A static IP registered with Dhan for each Dhan account — and, for accounts at other brokers, one registered with their broker. No static IP yet? Our Cloud Server for Algo Trading comes with one, and the free static IP checker shows the IP you connect from.
  • TOTP turned on for each Dhan account, with its secret key saved.
// STEP BY STEP

Set up copy trading with Dhan

Six steps, from API keys to the first copied order. No coding at any point.

  1. Step 1

    Get your Dhan API details

    1. Generate an API Key and Secret from your Dhan profile, with the Redirect URL http://web.dhan.co/.
    2. Set up TOTP and save the secret key.
    3. For the master account, subscribe to the DhanHQ Data API.
    4. Whitelist your static IP.

    Do this for every Dhan account you will use, master and children alike. The full Dhan setup, field by field →

  2. Step 2

    Install the software and sign in

    Install MyAlgoMate's Copy Trading Software on a Windows PC or a Windows cloud machine that stays on during market hours, and sign in with your MyAlgoMate account. Turn on Set time automatically in Windows first: Dhan logins use a TOTP code worked out from the clock, and a clock that is out by a minute makes them fail.

    Read this step in the user guide →

  3. Step 3

    Add Dhan as your master or as a child

    On the ACCOUNTS screen press Add Master (the account you trade in) or Add Child (an account that receives copies). Choose Dhan, type an A/C Name you will recognise and enter Client ID, API Key, API Secret and TOTP key. If this account connects through its own static IP (a proxy), fill in the account's proxy block too.

    Read this step in the user guide →

  4. Step 4

    Run the broker IP check

    The check opens by itself when you save the account. It confirms Dhan accepts orders from this account's IP before the market opens, so you never find out from a rejected order. You can re-run it any time from the account's ⋯ menu.

    Read this step in the user guide →

  5. Step 5

    Set each child's multiplier and segments

    Every child account trades the master's quantity times its own multiplier — whole numbers, fractions or decimals, and a different figure per segment if you want. Untick any segment you don't want copied into that account.

    Read this step in the user guide →

  6. Step 6

    Log in all accounts and start copying

    Press Login All: the master logs in first, then the children. Press START COPY and trade as you always do — in Dhan's own app or terminal, or from your own algo. Each order is copied into every child account the moment it appears.

    Read this step in the user guide →

// ANY BROKER

Copy between Dhan and other brokers

The master and each child can be at different brokers, in any combination.

All 153 supported brokers →

// WHAT GETS COPIED

What reaches your Dhan child accounts

You placeEach child gets
Market orderA limit order, priced from your own Order settings
Limit orderA limit order at your price
Stop-loss limit (SL)The same waiting stop-loss order
Stop-loss market (SL-M)The same waiting stop-loss order
A change to price or triggerThe same change
A cancellationThe matching orders are cancelled

Equity, F&O and commodity orders across eight segments (NSE, NFO, NCO, MCX, CDS, BSE, BFO, BCD), each switchable per account. Not copied: after-market, bracket and cover orders, quantity changes on a waiting order, and anything your master's broker rejects. Copy settings in the user guide →

// CONTROLS

Built for running many accounts at once

// PRICE

What copy trading with Dhan costs

  • MyAlgoMate: from ₹400 a month per account (+ GST), or ₹500 month to month. Every account counts, the master included; a live setup needs at least one master and one child. See plans
  • Dhan API: As the master: Dhan's Trading API is free, but the master needs Dhan's Data API subscription — ₹499 plus taxes a month at the time of writing, billed by Dhan. As a child: Dhan's free API is enough. A child account does not need the Data API subscription.
  • Brokerage: Dhan's own charges on your trades are separate and unchanged.
// FAQ

Copy trading with Dhan — questions

Yes. MyAlgoMate's Copy Trading Software connects to Dhan through DhanHQ API. A Dhan account can be the master — the account you trade in — or a child that receives a copy of every order, and it can copy to or from accounts at any of the other 152 supported brokers.

As the master: Dhan's Trading API is free, but the master needs Dhan's Data API subscription — ₹499 plus taxes a month at the time of writing, billed by Dhan. As a child: Dhan's free API is enough. A child account does not need the Data API subscription.

Yes. Every account that places orders through a broker API — the master and each child — needs a static IP registered with its broker, and orders from an unregistered IP are rejected. At Dhan: Whitelisted with Dhan. Orders from any other IP are rejected with the DH-905 Invalid IP error. The software lets you give each account its own proxy, so accounts can connect from different static IPs.

No. You enter each Dhan account's details once, and the software logs it in for you using the TOTP key. Nobody needs to log in to Dhan separately.

Yes. The master and every child can be at different brokers. Place an order in your Dhan master and it is copied into child accounts at Zerodha, Angel One, Upstox or any other supported broker — or make Dhan the child of a master held elsewhere.

Yes. Add one Dhan account as the master and the others as children. Each child is sized by its own multiplier, and each one needs its own Dhan API access and its own registered static IP.

Client ID, API Key, API Secret and TOTP key, plus the account's Client ID. You enter them once, and they are stored on your own machine — never on MyAlgoMate's servers.

Yes. The software watches your master account's order book, so an order placed in Dhan's app, its website or your own algo is copied the same way. If your own algo also signs in with the same Dhan API key, ask us on WhatsApp before you start — brokers set their own rules on one API key being used by two programs at once.

The software sends the child orders as soon as the master's order appears. What you actually see also depends on how quickly each broker's API replies and on your internet connection; a cloud machine with a good connection is quicker than a home PC.

MyAlgoMate's Copy Trading Software costs from ₹400 a month per account (+ GST), or ₹500 month to month. Every account counts, the master included, and a live setup needs at least one master and one child. Dhan's own API is separate. As the master: Dhan's Trading API is free, but the master needs Dhan's Data API subscription — ₹499 plus taxes a month at the time of writing, billed by Dhan. As a child: Dhan's free API is enough. A child account does not need the Data API subscription. Dhan's brokerage on your trades is separate too.

MyAlgoMate is a technology provider. The software places the orders you tell it to place, in the accounts you link to it; it does not advise you on what to trade. Dhan rules and charges change — details are as of 31 October 2026; check with Dhan for the latest.

Start copy trading with Dhan

Add your Dhan account as a master or a child and copy your first order — 7 days free trial.

Share this page

Ask AI about this page