---
title: "Algo Trading with Sharekhan · MyAlgoMate"
source: https://myalgomate.com/brokers/sharekhan
retrieved: 2026-11-14
publisher: MyAlgoMate (Myalgomate Technologies LLP, Rajkot, India)
---

1. [Home](https://myalgomate.com/)
2. [Brokers](https://myalgomate.com/brokers)
3. Sharekhan

// BROKER · SHAREKHAN

# Algo trading with Sharekhan

Supported

Connect your Sharekhan account to MyAlgoMate and automate your execution — one-click orders, risk controls and fast exits, no coding required.

💬 Ask about Sharekhan

## Does MyAlgoMate work with Sharekhan?

Yes. Your Sharekhan account works with 7 MyAlgoMate products: [StockMock and AlgoTest strategy automation tool (Time Based Straddle Strangle)](https://myalgomate.com/products/stockmock-algotest-strategy), [TradeMate](https://myalgomate.com/products/trademate), [Copy Trading Software](https://myalgomate.com/products/copy-trading-software), [TradeBridge](https://myalgomate.com/products/tradebridge), [Cloud Server for Algo Trading](https://myalgomate.com/products/cloud-server-for-algo-trading), [RMS Tool](https://myalgomate.com/products/rms-tool) and [Virtual Trading Environment](https://myalgomate.com/products/virtual-trading-environment). In copy trading, a Sharekhan account can be the master or a child — see [copy trading with Sharekhan, step by step](https://myalgomate.com/copy-trading/sharekhan). You connect it once with your own Sharekhan API details. MyAlgoMate provides the technology only — the software places the orders you set up, and gives no tips or advice.

Disclaimer

**MyAlgoMate Technologies LLP has no partnership, agreement, or affiliation with any broker named on this website.** Broker names are shown for information only — to indicate which broker APIs MyAlgoMate is compatible with. All broker names and trademarks belong to their respective owners.

// HOW WE CONNECT

## Connecting Sharekhan

MyAlgoMate connects to Sharekhan (Mirae Asset Sharekhan) through their official Trading API. You generate an API Key and Secure Key from the Trading API dashboard, set up TOTP on your Sharekhan account, register a static IP, and then enter your API Key, Secure Key, Client ID, Password and TOTP key into the broker login form in MyAlgoMate.

// WHAT YOU CAN AUTOMATE

## Use Sharekhan with

Your Sharekhan account works with all 7 of these MyAlgoMate products — plus custom automation of your own strategy.

- [StockMock and AlgoTest strategy automation tool (Time Based Straddle Strangle)](https://myalgomate.com/products/stockmock-algotest-strategy)
- [TradeMate](https://myalgomate.com/products/trademate)
- [Copy Trading Software](https://myalgomate.com/products/copy-trading-software) — see [Sharekhan copy trading](https://myalgomate.com/copy-trading/sharekhan) (master or child, API and static IP)
- [TradeBridge](https://myalgomate.com/products/tradebridge)
- [Cloud Server for Algo Trading](https://myalgomate.com/products/cloud-server-for-algo-trading)
- [RMS Tool](https://myalgomate.com/products/rms-tool)
- [Virtual Trading Environment](https://myalgomate.com/products/virtual-trading-environment)
- [Custom strategy automation](https://myalgomate.com/solutions/custom-strategy-automation) — your own logic, automated; you set the rules and stay in control.

// SETUP

## Setting up Sharekhan

### Step 1 — Generate your API Key and Secure Key

> Sharekhan's Trading [API](https://myalgomate.com/glossary#api) is free — there are no additional charges and no subscription fee for using it. You only need an active Sharekhan trading account.

1. Go to the [Sharekhan Trading API dashboard](https://www.sharekhan.com/trading-api/dashboard) and sign in with your Sharekhan credentials.
2. Create a new app, give it a name (for example MyAlgoMate), and place the [API key](https://myalgomate.com/glossary#api-key-and-secret) request.
3. You receive two credentials — copy both:
  - **API Key** — identifies your app
  - **Secure Key** — Sharekhan's name for the API secret; keep it private

### Step 2 — Set up TOTP on your Sharekhan account

> MyAlgoMate signs in to Sharekhan for you, so it needs a [TOTP](https://myalgomate.com/glossary#totp-2fa) key rather than a code you type in yourself.

1. Log in to the Sharekhan website with your usual credentials.
2. Open the **profile menu** and choose the option to set up TOTP. Sharekhan also publishes a step-by-step TOTP guide on their website if you need it.
3. When the QR code appears, save the **secret key** it contains — most authenticator apps show a “can't scan the code?” or manual-entry option that reveals it. This secret key is the TOTP key MyAlgoMate needs.
4. Scan the QR code into your authenticator app (Google Authenticator, Authy, etc.). You get an on-screen confirmation once TOTP is enabled.

### Step 3 — Register your static IP

Under the [SEBI](https://myalgomate.com/glossary#sebi) retail algo-trading rules in force since 1 April 2026, API order placement must originate from a registered [static IP](https://myalgomate.com/glossary#static-ip). Register your static IP with Sharekhan for API trading.

1. Which IP to use: if you run MyAlgoMate on your own machine, use your **ISP's static IP**; if you run it on a [cloud machine](https://myalgomate.com/glossary#vps-cloud-server), use that **cloud server's static IP**.

No static IP or cloud machine yet? Our [Cloud Server for Algo Trading](https://myalgomate.com/products/cloud-server-for-algo-trading) is a cloud machine specialised for algo trading, and it comes with its own static IP you can register.

### Step 4 — Enter the details in MyAlgoMate

1. Open the **broker login form** in MyAlgoMate and enter your **API Key**, **Secure Key**, **Client ID**, **Password** and **TOTP key**, then save.

## What you need to collect

To connect Sharekhan, the broker login form in MyAlgoMate needs five details:

- [**API Key**](https://myalgomate.com/glossary#api-key-and-secret) — from the app you create in the Trading [API](https://myalgomate.com/glossary#api) dashboard
- **Secure Key** — issued with it; this is Sharekhan's name for the API secret
- **Client ID** — your Sharekhan client id, the one you sign in with
- **Password** — your Sharekhan account password
- **[TOTP](https://myalgomate.com/glossary#totp-2fa) key** — the secret key you saved when setting up TOTP

One more thing is set on Sharekhan's side rather than entered here: your registered [static IP](https://myalgomate.com/glossary#static-ip).

## “Secure Key” is Sharekhan's name for the API secret

Most brokers call the second credential an API Secret. Sharekhan calls it a Secure Key — it is the same kind of thing, and it is what goes into MyAlgoMate's Secure Key field. If you have set up other brokers and are hunting for something labelled “API Secret” in the Sharekhan dashboard, this is it.

## The Trading API is free

Sharekhan does not charge for the Trading API — there are no additional charges and no subscription fee for using it, so there is nothing to buy and nothing to renew. You only need an active Sharekhan trading account. (Sharekhan's own brokerage charges for the trades you place are separate.)

Please check with Sharekhan for latest terms.

## Why TOTP is required

Sharekhan protects account login with two-factor authentication, and MyAlgoMate signs in to your account for you — so it cannot receive a one-time code you would normally read off your phone. You set TOTP up once on the Sharekhan website and give MyAlgoMate the secret key behind it. Keep the authenticator app on your phone as well, so you can still sign in to Sharekhan yourself.

## Static IP — required for API trading

**Important — static-IP changes are limited:** you can update your registered static IP only once in 7 days (once per week). To change it sooner, you must ask your broker to update it for you.

Under the [SEBI](https://myalgomate.com/glossary#sebi) retail algo-trading rules in force since 1 April 2026, API order placement must originate from a registered static IP, so you need to register one with Sharekhan. Use your ISP's static IP if you run MyAlgoMate on your own machine, or your [cloud machine](https://myalgomate.com/glossary#vps-cloud-server) 's static IP if you run it on a server.

If you don't have a static IP, our [Cloud Server for Algo Trading](https://myalgomate.com/products/cloud-server-for-algo-trading) is a cloud machine built for algo trading and includes a static IP of your own that you can register.

## Keep your credentials private

Your Secure Key, password and TOTP key are the keys to your own trading account — never share them with anyone. MyAlgoMate provides the automation technology; you set the rules and stay in control of your own trades.

// FAQ

## Sharekhan — questions

### Do I need to pay for the Sharekhan Trading API?

No. Sharekhan's Trading API is free — there are no additional charges and no subscription fee for using it. You only need an active Sharekhan trading account. Sharekhan's own brokerage charges for the trades you place are separate.

### What Sharekhan details does MyAlgoMate need?

Five: your API Key and Secure Key from the app you create in the Trading API dashboard, your Client ID, your account Password, and your TOTP key. You enter all five in the broker login form in MyAlgoMate. Separately, you register a static IP on Sharekhan's side.

### What is the Secure Key — is it the same as an API Secret?

Yes. Most brokers call that second credential an API Secret; Sharekhan calls it a Secure Key. It is issued alongside your API Key when you create the app, and it goes into the Secure Key field in MyAlgoMate.

### Where do I get my Sharekhan API Key and Secure Key?

Sign in to the Sharekhan Trading API dashboard, create a new app and place the API key request. You then receive the API Key and Secure Key, which are what you enter in MyAlgoMate.

### Why do I need TOTP for Sharekhan, and where do I set it up?

Sharekhan uses two-factor authentication at login, and MyAlgoMate signs in for you, so it needs the TOTP secret key rather than a code you read off your phone. Set it up by logging in to the Sharekhan website and opening the profile menu, then choose the TOTP option. When the QR code appears, save the secret key it contains — that is what you enter in MyAlgoMate.

### Do I need a static IP for Sharekhan API trading?

Yes — under the SEBI retail algo-trading rules in force since 1 April 2026, API order placement must come from a registered static IP, so register one with Sharekhan. Use your ISP's static IP if you run MyAlgoMate on your own machine, or your cloud machine's static IP if you run it on a server. If you don't have one, our Cloud Server for Algo Trading includes a static IP.

## Automate on Sharekhan, the compliant way

Connect in minutes, automate without code, and stay in control — with a team that answers.

[Get started](https://myaccount.myalgomate.com/) [WhatsApp us](https://wa.me/918866122446?text=Hi%2C%20I%20got%20your%20number%20from%20your%20website.)

---
MyAlgoMate is a technology provider: its software automates the user's own trading rules. It does not give
trading tips, calls or investment advice and never promises returns. Site map for AI assistants:
https://myalgomate.com/llms.txt
