Algo trading with Zerodha
Connect your Zerodha account to MyAlgoMate and automate your execution — one-click orders, risk controls and fast exits, no coding required.
Connecting Zerodha
MyAlgoMate connects to Zerodha through Zerodha's official Kite Connect API. You create your own Kite Connect app (mapped to your Zerodha Client ID), whitelist a static IP as Zerodha requires, and then enter your API Key, API Secret and TOTP key into the broker login form in MyAlgoMate.
Use Zerodha with
Your Zerodha account works with all 8 of these MyAlgoMate products — plus custom automation of your own strategy.
- Stockmock and Algotest strategy automation tool (Time Based Straddle Strangle)
- Trademate
- Copy Trading Software
- TradeBridge
- Cloud Server for Algo Trading
- RMS Tool
- ORB - Opening Range Breakout
- 5 EMA Strategy - Power of Stocks
- Custom strategy automation — your own logic, automated; you set the rules and stay in control.
Setting up Zerodha
Step 1 — Sign up for Kite Connect and create your app
- Go to developers.kite.trade/signup and register (use the email linked to your Zerodha account, plus your name, mobile and state).
- Choose the Connect (paid) plan — a monthly fee of ₹500 per API key at the time of writing (please check Kite for the latest charges). The free plan has no live market data, so it is not suitable for automation. You can pay from the billing section, or link your Kite account so the amount is debited from there.
- Open My Apps → Create New App and fill in:
- App Name — e.g. MyAlgoMate
- Zerodha Client ID — your Zerodha client id. This maps the API app to your trading account.
- Redirect URL — exactly https://www.myalgomate.com/
- Postback URL — optional, you can leave it blank
- Description — e.g. Algo trading automation
- Once the app is created, open it and copy the API Key and the API Secret.
Step 2 — Register your static IP (mandatory)
Zerodha requires a registered static IP for placing orders through the API (NSE/SEBI algo-trading rules, in force since 1 April 2026). Orders sent from an IP that is not whitelisted are rejected.
- In your Kite Connect developer account, open Profile (top-right) → IP Whitelist, enter your static IP and click Update. You can add up to two — one primary (mandatory) and one secondary (optional) — on separate lines.
- 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, use that cloud server's static IP.
- ⚠️ You can change the whitelisted IP only once per calendar week — double-check it before you save.
No static IP or cloud machine yet? Our Cloud Server for Algo Trading is a cloud machine specialised for algo trading, and it comes with its own static IP you can whitelist.
Step 3 — Generate your TOTP key
- Log in to Kite, click your Client ID, then go to My profile / Settings → Password & Security.
- Click Enable External TOTP and verify with the OTP sent to your email.
- When the QR code appears, click “Can’t scan? Copy the Key” and save that key — this is the TOTP key MyAlgoMate needs. Also scan the QR into an authenticator app (Google Authenticator, Authy, etc.).
- Enter the 6-digit code from your authenticator app and your Kite password, then click Enable.
On the Kite mobile app: tap Client ID → Profile → Manage → Enable external TOTP, then use the same “Can’t Scan? Copy the Key” option.
Step 4 — Enter the details in MyAlgoMate
- Open the broker login form in MyAlgoMate and enter your API Key, API Secret and TOTP key, then save.
What you need to collect
To connect Zerodha, the broker login form in MyAlgoMate needs three details:
- API Key — from your Kite Connect app
- API Secret — from the same app
- TOTP key — from Kite → Password & Security → Enable External TOTP → “Can’t scan? Copy the Key”
Two more things are set on Zerodha's side rather than entered here: your app must be mapped to your Zerodha Client ID when you create it, and you must whitelist a static IP.
Static IP — required by Zerodha
Since 1 April 2026, NSE/SEBI algo-trading rules require a registered static IP for API order placement — orders from an unregistered IP are rejected. Add it in your Kite Connect developer account under Profile → IP Whitelist (up to two IPs; changeable only once per calendar week). Use your ISP's static IP if you run MyAlgoMate locally, or your cloud machine's static IP if you run it on a server.
If you don't have a static IP, our Cloud Server for Algo Trading is a cloud machine built for algo trading and includes a static IP you can whitelist.
About the Kite Connect subscription
Kite Connect is a paid API subscription from Zerodha — a monthly fee of ₹500 per API key at the time of writing. Please check Kite for the latest charges. It is billed by Zerodha (not by MyAlgoMate), and the app is created under your own Zerodha account. You can pay from the billing section, or link your Kite account so the amount is debited from there.
Redirect URL
When you create the app, set the Redirect URL to https://www.myalgomate.com/ exactly. If it does not match, the connection will not complete.
Keep your keys private
Your API Secret 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.
Zerodha — questions
Do I need a paid Zerodha API subscription to use MyAlgoMate?
Yes. Zerodha's Kite Connect is a paid API subscription billed by Zerodha — a monthly fee of ₹500 per API key at the time of writing; please check Kite for the latest charges. The free plan has no live market data, so it is not suitable for automation.
What Zerodha details does MyAlgoMate need?
Three: your Kite Connect app's API Key and API Secret, plus your Zerodha TOTP key. You enter all three in the broker login form in MyAlgoMate. Separately, your app must be mapped to your Zerodha Client ID and you must whitelist a static IP on Zerodha's side.
Do I need a static IP for Zerodha API trading?
Yes — since 1 April 2026, NSE/SEBI algo rules require a registered static IP, and orders from an unregistered IP are rejected. Add it in your Kite Connect developer account under Profile → IP Whitelist (up to two IPs). 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. Note you can change it only once per calendar week. If you don't have one, our Cloud Server for Algo Trading includes a static IP.
What Redirect URL should I set in my Kite Connect app?
Set it to https://www.myalgomate.com/ exactly. If the Redirect URL does not match, the connection will not complete.
Where do I find my Zerodha TOTP key?
In Kite: click your Client ID → My profile / Settings → Password & Security → Enable External TOTP. Verify with the OTP emailed to you, then click “Can’t scan? Copy the Key” — that key is what you enter in MyAlgoMate.
Automate on Zerodha, the compliant way
Connect in minutes, automate without code, and stay in control — with a team that answers.

