This page explains what you need, how the connection works, each step of connecting, the daily sign-in, what QuantPower can and cannot do on your Zerodha account, the order rules that apply at Zerodha, three worked examples, what to do when something goes wrong, and how the SEBI rules for retail algos that came into force on 1 April 2026 apply to Zerodha users.
A short history of algo trading on Zerodha
Zerodha started in 2010 as a discount broker and grew into one of India's largest brokers by active clients. It built its own trading platform, Kite, and opened it to developers through Kite Connect, a set of web APIs that let a client's own software read the account and place orders.1 Over the following years Kite Connect became one of the most used broker APIs in India: individual traders wrote Python scripts against it, and third-party platforms connected their users through it.
For most of that time, a retail algo was simply a program sending orders through an API, and the broker could not tell an algo order from a manual one. SEBI's circular of 4 February 2025 on safer participation of retail investors in algorithmic trading changed that. It made the broker responsible for algo orders, asked exchanges to empanel algo providers and register strategies, and tied API order placement to static IP addresses registered with the broker.2 After two postponements, the framework came into force for every broker from 1 April 2026.3
Zerodha's response was to require a static IP for every order placed through Kite Connect from 1 April 2026, while letting market data and account reads continue from any address.4 QuantPower gives every client two static IPs for exactly this rule, so a Zerodha user does not need to rent a server or buy an add-on to keep trading through the API.
How QuantPower connects to Zerodha
| Part | How it works |
|---|---|
| Sign-in | Redirect sign-in: you tap Sign in in QuantPower, log in on Zerodha's own page and come back. Your Zerodha password never touches QuantPower |
| Your app keys | Your Kite Connect API key and secret, entered once, sent over https, stored encrypted and never shown again |
| Order route | Every order goes through QuantPower's one order path, with its risk checks, then to Zerodha through Kite Connect |
| Static IPs | 2 static IPs free with every QuantPower account, a primary and a backup. If the forwarding proxy is down, orders are held, never sent from another address |
| Prices | Live prices come from your Zerodha connection; with no broker connected, QuantPower shows no live prices |
| Session | A Zerodha session ends early the next morning, so you sign in once each trading day |
| Money | Your funds, shares and positions stay with Zerodha. QuantPower holds no money |
Zerodha's own rules for the static IP: you register at least one IP and can add a second, and the exchange rules allow one change to the list per calendar week.4 QuantPower's two addresses fill the primary and secondary slots.
How to connect Zerodha to QuantPower
- Create a Kite Connect app. Log in to Zerodha's Kite Connect developer site and create an app. Enter the redirect URL that QuantPower shows on its Zerodha connect screen. Choose the plan that includes market data if you want live prices in QuantPower.
- Copy the keys. Copy the app's API key and API secret.
- Open Brokers in QuantPower. Choose Zerodha. Enter your Zerodha client ID, the API key and the API secret.
- Confirm with a tap. QuantPower asks for your tap, then sends the keys once over https. They are stored encrypted and never shown again; the screen shows your client ID masked.
- Register the static IPs. The Zerodha row in QuantPower shows your two static IPs. In your Kite Connect developer profile, under IP whitelist, enter the first as the primary IP and the second as the secondary IP, and save. Check them carefully: the exchange rules allow one change a week.
- Sign in. Tap Sign in on the Zerodha row. Zerodha's login page opens. Enter your user ID, password and two-factor code, approve access, and you return to QuantPower.
- Check the account. Your funds, holdings, positions and orders should now appear as Zerodha holds them.
- Test before going live. Run your first strategy in forward test with test money, then switch it on live with the smallest size.
QuantPower's general checklist for every broker, including segments, margins and the static IP, is in broker connection requirements.
Kite Connect terms you will see
| Term | What it is |
|---|---|
| API key | The public identifier of your Kite Connect app, entered once in QuantPower |
| API secret | The private key of your app; QuantPower stores it encrypted and never shows it again |
| Redirect URL | The address Zerodha sends you back to after you log in, shown on QuantPower's connect screen |
| Request token | A one-time code Zerodha returns after your login, exchanged for the day's session |
| Access token | The day's session; it ends early the next morning, so you sign in once each trading day |
| IP whitelist | The primary and secondary static IPs registered in your developer profile |
Every trading day
Zerodha ends an API session early the next morning, so each trading day starts with a sign-in.
- Sign in before the market opens. Tap Sign in on the Zerodha row and log in on Zerodha's page. The row shows "signed in" and when the session ends.
- Algos that enter later today switch on without the sign-in, and their card says "Sign in to your broker before the entry". If the entry comes and you have not signed in, the entry is refused with the reason.
- Algos that would enter now cannot be switched on live while Zerodha is signed out; the switch-on is refused and asks you to sign in.
- Nothing signs in for you. QuantPower never stores your Zerodha password and never logs in on your behalf.
- If Zerodha does not answer, risk checks refuse new orders. "No answer" is never read as "no positions".
A short routine: sign in at about 9:00 am, check that the funds figure matches Kite, and glance at the algo cards for anything waiting.
What QuantPower can and cannot do on your Zerodha account
| QuantPower can | QuantPower cannot |
|---|---|
| Show your funds, holdings, positions and orders as Zerodha holds them | Withdraw money from your Zerodha account |
| Place, modify and cancel orders that you or your algos send | Change your bank account, address or nominee |
| Run algos that enter and exit by your rules once you switch them on | See the password you type on Zerodha's page |
| Square off positions when your MTM stop loss or Smart Exit is hit | Place an order from an AI app without your confirmation |
| Refuse new orders once your daily loss limit is reached | Send orders from any address other than your two static IPs |
| Stop trading in a segment until its next session with the kill switch | Trade on another person's account |
The safety controls cover your whole QuantPower account. If you connect Zerodha and another broker, the daily loss figure adds up both, and each position's exit goes to the broker that holds it.
Market data from Zerodha
QuantPower's prices come from your connected broker. With Zerodha, that means the market data your Kite Connect app is allowed to receive. The plan that includes market data streams live prices and serves historical candles; QuantPower turns the live ticks into 1-minute bars and reads history from Zerodha's candle service when a chart or a backtest needs it. Zerodha allows market data and account reads from any IP address; only order placement needs the registered static IP.4
If your Kite Connect app is on a plan without market data, you can still place orders and see positions, but QuantPower will have no live prices from Zerodha. Charts, the option chain, signals and algos all need prices, so most QuantPower users choose the plan with data.
Your Zerodha account inside QuantPower
Once connected, QuantPower's trading screens show your Zerodha account as Zerodha holds it:
- Positions show today's positions with their M2M, per broker. You can convert a position's product, for example from intraday to overnight where the segment allows, or exit it. Exit all closes everything, or one segment, and asks for your tap and your second factor.
- Holdings show your Zerodha portfolio with profit and loss. A holding can be pledged for margin, so shares you own can support option selling without moving cash.
- Funds show margin, collateral, cash and what can be withdrawn, as reported by Zerodha. Adding or withdrawing money stays a Zerodha task.
- Orders show today's orders from every source: manual orders, baskets, GTT, the Scalper, algos and signals, with a Strategy column that shows which algo placed each order.
- GTT orders wait for a trigger price for up to 365 days, with up to 100 active at a time, and a GTT line on the chart can be dragged to a new trigger.
Manual trades and algo trades travel the same order path, so one kill switch and one daily loss limit cover both. You can trade from the chart as well: your Zerodha orders, positions and GTT triggers show as lines on the price, and every action opens the order sheet for your tap.
Running several strategies on one Zerodha account
Most active users run more than one algo. A few limits and habits keep that orderly:
- Limits. Up to 50 saved algos, 20 running at a time, and up to 6 legs in a running algo.
- One broker per algo. When you switch an algo on live, you pick the broker, and every leg goes there. A restart stays at the same broker; it never moves to another one on its own.
- A cap on orders. You can set a maximum number of orders a day for the whole account.
- Overlap. If two algos trade the same index, their positions add up at Zerodha. Check the combined margin before switching both on, and remember that the daily loss limit and Smart Exit look at the account, not the single algo.
- Costs. Each live algo is 200 tokens per 28 days regardless of how many orders it sends. Zerodha's brokerage and the statutory charges apply to every executed order.
A checklist before your first live algo on Zerodha
- F&O is active on your Zerodha account, and the margin for the strategy is free.
- Your Kite Connect app is on a plan with market data, and QuantPower shows live prices.
- The two static IPs from QuantPower are saved in your Kite Connect IP whitelist.
- You signed in today, and the Zerodha row shows "signed in".
- The algo has run in Forward test for at least a few weeks, and you have read its activity log.
- Your daily loss limit and Smart Exit are set for the account.
- The first live run uses the smallest size, one lot.
If any line is not true, the safest step is to fix it before switching on. Most failed first days on any broker come from items 3 and 4.
Order rules at Zerodha
Zerodha applies its own checks on top of the exchange's. Build your strategies with them in mind:
- Stop-loss market orders in options. The NSE discontinued SL-M orders in index options in 2021, and Zerodha does not accept them in options.5 Use stop-loss limit orders for option stops.
- Market orders in options. Zerodha blocks market orders in stock options and in some index option contracts, such as far expiries and deep in-the-money strikes. Limit orders priced near the best bid or ask avoid rejections.
- Market protection. For market and SL-M orders placed through the API, Zerodha applies protection within the price range the exchange allows, so a market order cannot fill at an extreme price.6
- Freeze quantity. Orders above the exchange's freeze limit for a contract must be split. QuantPower splits an order above the freeze quantity automatically, and its iceberg orders let you split a large order into 2 to 50 legs sent one at a time.
- Rate limits. Broker APIs limit how many orders a second an app can send. QuantPower's order path sends one order at a time per leg and never retries a placed order on its own.
QuantPower's algo exits are market orders that only reduce a position. Where Zerodha rejects a market order for a contract, the algo's card shows the reason, and an exit that was refused is tried again up to 8 times with a growing gap.
Zerodha, Streak and QuantPower
Zerodha users can also use Streak for indicator strategies on stocks and Sensibull for option analysis. You can keep using them alongside QuantPower on the same Zerodha account, as long as two platforms never trade the same signal, or your positions will double. The two products cover different ground: see Streak vs QuantPower for a side-by-side comparison.
A worked example: a Nifty short straddle on Zerodha
Take a weekly short straddle: sell one lot of the at-the-money Nifty call and put at 9:20 am, with a stop-loss of 30% on each leg, and exit both at 3:10 pm.
- In the algo builder, load the Short Straddle template. It becomes your own algo, with every rule visible.
- Set both legs to "ATM", weekly expiry, one lot. A Nifty lot is 65 units since the end-2025 revision.7
- Set the entry time to 9:20 am, the exit time to 3:10 pm, and a 30% stop-loss on each leg.
- Switch it on in Forward test for a few weeks. It runs on live Zerodha prices with test money.
- When you switch it on live, pick Zerodha as the broker. Every leg of the algo goes to Zerodha.
What it costs:
- QuantPower: 200 tokens per 28 days for the live algo (₹200 plus GST), with orders unlimited. Forward test is 100 tokens per 28 days.
- Zerodha and the exchange: four orders a day, two to enter and two to exit. At ₹20 an order that is ₹80 a day in brokerage, plus STT, which since 1 April 2026 is 0.15% of the premium on every option sale,8 exchange charges, stamp duty and GST.
Because both legs are sold, the margin is blocked at Zerodha, not at QuantPower. The algo sends the buy legs first if you add a hedge, so a refused hedge never leaves a sold option uncovered.
A worked example: a stock signal on Zerodha
Take a rule on Reliance: when the 20-period exponential moving average crosses above the 50-period one on 15-minute candles, buy 50 shares intraday, with a 1% stop-loss and a 2% target.
- Create a signal with the condition on Reliance, checked on closed 15-minute candles.
- Choose One-touch: when it fires, you get a notice and the order is ready, and you place it with one touch. Or arm it as Auto: the signal places the order itself, with every risk check.
- Set the order: buy 50 shares, intraday, limit price near the last traded price.
A signal that places its own order costs no tokens. Each executed order pays Zerodha's brokerage and the statutory charges on equity intraday trades.
A worked example: a chart alert to Zerodha
Set the alert on an Arth.live chart, or keep the charting software you already use. Create a webhook in QuantPower and link it to an algo. Link the Arth.live price alert to the webhook, or paste the webhook's URL into the other software's alert. When the alert fires during market hours, the webhook switches the linked algo on for today and enters now; an exit alert stops it and squares off. The orders go to Zerodha from your static IPs, and the hit log shows each alert and what it did. Webhooks are free; the linked algo pays its normal 200 tokens per 28 days.
When something goes wrong
| What you see | Likely cause | What to do |
|---|---|---|
| "Sign-in needed" on the Zerodha row | Yesterday's session has ended | Tap Sign in and log in on Zerodha's page |
| Order rejected for IP | The static IPs are not registered, or were entered wrongly, in your Kite Connect profile | Compare the IPs in the Zerodha row with the IP whitelist; remember one change a week |
| Market order rejected in options | Zerodha blocks market orders in that contract | Use a limit order near the best bid or ask |
| Insufficient margin | The order needs more margin than is free at Zerodha | Add funds or reduce the size; pledged holdings count as collateral |
| Segment not enabled | F&O or commodity is not active on your Zerodha account | Activate the segment with Zerodha |
| No prices in QuantPower | Your Kite Connect app has no market data, or you are signed out | Check the plan on your app and sign in |
| Two-factor code refused | The phone's clock is off | Set the phone to automatic time |
If an algo stops, its card and activity log say why in one plain line, for example a refused entry, a missing price or a signed-out broker.
What the SEBI rules mean for a Zerodha user
The retail algo framework in force since 1 April 2026 separates two cases.23
- Your own code. If you write your own program against Kite Connect and send fewer than 10 orders a second, you do not need to register the algo with the exchange. You do need a static IP registered with Zerodha, and the orders are still your responsibility and Zerodha's to supervise.
- Algos offered by a platform. Strategies that a platform offers to retail traders reach them through a broker under the exchange's rules, with each strategy registered and its orders tagged so the exchange can tell them apart from manual orders.
Either way, three practical points apply to every Zerodha user who automates: register the static IP before you need it, sign in every day, and keep a record of what each strategy is meant to do. In QuantPower every rule of every algo is visible to you, and the activity log keeps one plain line for each entry, exit, change and refusal.
Building Zerodha strategies with Quanty and your own AI app
You do not have to set every field by hand.
- Quanty, the AI assistant in the QuantPower app, can build a strategy from your description, backtest it and run a risk check that flags a missing stop-loss or an unhedged sold option. It saves the algo switched off. Only you can switch it on.
- Your own AI app, such as Claude or ChatGPT, can connect to your QuantPower account through Connect AI. With your permission it can read your Zerodha positions and orders as QuantPower sees them, backtest your rules and prepare an order. A prepared order appears as a card in the app; it is placed only when you confirm it with a tap and your second factor.
Neither Quanty nor a connected AI app gives tips or recommends a strategy. Both are software, not advisers: they help you write down, test and run your own rules on your Zerodha account.
Moving from your own Kite Connect script
Many Zerodha users start with a Python script against Kite Connect. Moving such a strategy to QuantPower is mostly a matter of translating the rules:
| In your script | In QuantPower |
|---|---|
| A login routine and a stored access token | The daily Sign in on the Zerodha row |
| A server or home connection with a static IP | The two static IPs included with your account |
| Code that picks the at-the-money strike | A rule leg set to "ATM", picked fresh at each entry |
| Loops that check stops and targets | Stop-loss, target, trailing stop and M2M exits set on each leg and on the algo |
| Your own logs | The activity log on the algo card |
| A kill switch you wrote yourself | The account kill switch, daily loss limit and Smart Exit |
If you prefer to keep your code, you can: QuantPower and your script can use the same Zerodha account, as long as they never trade the same signal. Some traders keep research in Python and move the strategies they trade every day into algos, where the session, the IP and the risk checks are handled for them.
Security
- Your password is typed only on Zerodha's page.
- Your API secret is sent once over https, stored encrypted, and never shown again.
- Your session with QuantPower uses cookies that page code cannot read, and sensitive actions, such as exit all, the kill switch or confirming an order prepared by an AI app, ask for your second factor.
- Your orders leave only from your two static IPs. If the proxy that carries them is down, orders are held, not sent another way.
- Your money never passes through QuantPower.
Where Zerodha algo trading is going
The April 2026 framework has turned retail algo trading on Zerodha from an informal practice into a regulated one: registered static IPs, a broker responsible for every algo order, and strategies registered with the exchange.2 The practical effect for a trader is fewer moving parts to set up alone and more reliance on platforms that handle the IP, the session and the risk checks in one place. What does not change is that every rule of an algo is yours, and that testing it before real money remains your job.
Frequently asked questions
Does QuantPower see my Zerodha password?
No. You type it on Zerodha's own login page and return to QuantPower. QuantPower keeps your API key and secret encrypted and uses the day's session that Zerodha issues after your login.
Which static IPs do I register with Zerodha?
The two shown on the Zerodha row of QuantPower's Brokers screen: one as the primary IP and one as the secondary IP in your Kite Connect developer profile. Any broker-specific step is shown in QuantPower's broker connection screen.
Do I have to log in to Zerodha every day?
Yes. Zerodha's session ends early each morning. Tap Sign in on the Zerodha row before the market opens.
Can I use QuantPower and Streak on the same Zerodha account?
Yes. Make sure the two platforms do not run the same strategy, or your positions will double.
Why was my Zerodha market order in options rejected?
Zerodha blocks market orders in stock options and some index option contracts. Use a limit order priced near the best bid or ask, or a stop-loss limit order for stops.
Can I run algos on Zerodha and another broker at the same time?
Yes. Each algo goes to the broker you choose when you switch it on, and the kill switch, daily loss limit and Smart Exit cover both brokers together.
Related guides
- F&O margin calculator: the margin your Zerodha orders need
- Pledge shares for margin: using holdings as collateral
- Streak alternative: other ways to run strategies with Zerodha
References
- Zerodha, Kite Connect API documentation (kite.trade)
- SEBI, circular on safer participation of retail investors in algorithmic trading, 4 February 2025 (sebi.gov.in)
- SEBI, glide-path circular, 30 September 2025, and NSE implementation standards for retail algo trading, 5 May 2025 (nseindia.com)
- Zerodha support: static IP for Kite Connect, mandatory for API order placement from 1 April 2026 (support.zerodha.com)
- NSE, circular on the discontinuation of stop-loss market orders in index options, 2021 (nseindia.com)
- Zerodha, Kite Connect developer forum: market protection and static IP, March 2026 (kite.trade)
- NSE, revision of market lot sizes of index derivatives, effective from the contracts after December 2025 (nseindia.com)
- Union Budget 2026-27: STT on the sale of options raised from 0.10% to 0.15% of the premium from 1 April 2026 (incometaxindia.gov.in)