How to Automate Zerodha Trading with Kite Connect

Published July 18, 2026 · Updated November 17, 2026 · In Indian Broker Automation Guides

Every Kite Connect access token stops working at 6 AM the next day. Any plan to automate Zerodha has to work around that line in Zerodha’s docs. Your code, your TradingView alerts or a Telegram copier can all place orders through Zerodha’s official API. But each of them needs a fresh login every trading day, and since 1 April 2026 a whitelisted static IP too.

This page is general information about software, not investment advice.

What it means to automate Zerodha

To automate Zerodha means a program places your orders instead of your hands. It waits for a condition, builds the order and sends it. The account and every rule it follows stay yours.

Three kinds of trigger drive almost every setup:

All three reach Zerodha through Kite Connect.

Path of one automated Zerodha order: your rules, alert or signal go from your software, through your static IP and Kite Connect, to an order in your account
The path of one automated order. Whatever starts it, the order leaves your own PC or VPS and reaches Zerodha through Kite Connect.

Kite Connect, and which plan you need

Kite Connect is Zerodha’s own API. A program calls it to place orders, read positions and stream prices. Zerodha publishes the Kite Connect documentation openly. It also publishes official client libraries for Python, Java, Go, PHP, Node.js and .NET (C#).

Through it, your software can place, modify and cancel market, limit, SL and SL-M orders. It picks the product too: CNC for delivery, MIS for intraday, NRML for F&O you carry forward. GTT orders, holdings and margins are there as well, which covers most Zerodha API trading needs.

According to Zerodha’s API page, the Personal plan is free and covers orders, GTT, alerts, margins and the portfolio. The Connect plan costs ₹500 a month and adds live WebSocket prices and historical candles. So a Telegram copier that only places orders may run fine on Personal. A strategy that reads live ticks will not.

Since October 2026, Zerodha’s support pages say a Connect user who pays ₹2,000 or more in brokerage in a month gets 500 Developer Credits, which cover the next renewal.

Kite has hard limits too. The rate limit page lists 10 orders per second, 400 per minute and 5,000 per day for one API key. One order can be modified 25 times, so a trailing stop that edits itself on every tick will hit that wall by lunch.

What changed on 1 April 2026

SEBI’s retail algo circular came out on 4 February 2025. Its start date moved more than once, and a circular of 30 September 2025 made the full framework apply to all brokers from 1 April 2026. Two things changed for API users on that date.

First, API orders now need a static IP that you whitelist with Zerodha. Reading data still works from any address, but placing an order does not. Many home broadband and mobile connections use a changing or shared address, so check yours before you whitelist it.

Second, every algo order carries a tag from the exchange. Zerodha’s overview of the NSE framework explains the split. A strategy you build yourself gets a generic ID while it stays at or below 10 orders per second, per segment, per exchange. Above that, it needs exchange registration and a unique algo ID. A copier or a simple strategy stays far below that line.

The daily login did not start in April 2026. Kite’s documentation calls the 6 AM token expiry a regulatory requirement, and the new rules sit on top of it. Zerodha’s team also said in replies on that overview that only one API key per user may run an unregistered algo, so splitting one strategy across several keys doesn’t get around the limit.

The static IP, in detail

You add the IP under IP Whitelist, in the Profile section of your Kite developer account. You need one primary IP and may add a second. Exchange rules allow one change per calendar week, so a typo can cost you days. Family members may share one IP through a single developer account. Zerodha’s static IP guide counts a spouse, dependent children and dependent parents as family.

The 6 AM problem: logging in every day

Traders who automate Zerodha still sign in by hand every trading day, however automatic the strategy is.

Each morning follows the steps in Kite’s login documentation. Your software opens Kite’s own login page, and you sign in with your password and TOTP. Kite then sends a request token back to the redirect URL you set for your app. That token lives for only a few minutes. In that window, your software sends it to Zerodha with a checksum built from your API key and secret, and gets the day’s access token in return.

From then on, that access token signs every order until 6 AM the next day. It can also die early. A master logout from Kite Web ends it at once, so if you use one at 11 AM, your bot’s next order fails. Treat any manual logout as a stop button for Kite Connect automation.

Log in after 6 AM, before your first order, on the machine that holds the static IP. Then check that one read call works, such as positions. If you see a token error instead, our note on why the Kite Connect token expired message appears covers the usual causes.

Some developers script the whole login, password and TOTP included. We don’t build it that way, because it puts your TOTP secret on the same box that places orders.

How to automate Zerodha, step by step

  1. Pick what drives the orders: your own code, TradingView alerts or Telegram calls. That choice decides which software you need.
  2. Get a static IP. A small Windows VPS with a fixed IP is the usual answer. A static IP from your internet provider also works, as long as your PC stays on.
  3. Create a Kite Connect app in the developer console. Note its API key and secret, set its redirect URL, and pick the plan your software needs.
  4. Whitelist the IP under Profile, then IP Whitelist. Check it twice first, because you can change it only once a week.
  5. Connect the software with the key and secret, then do the first login through Kite’s own page.
  6. Set your limits: the product, a lot cap, a daily order cap and a trading window. These are what keep a bad day small.
  7. Test small. Run one session on paper or with one lot, and check every order against what you expected before you add size.
Kite Connect automation setup in five steps: static IP, Kite Connect app, IP whitelist, daily login and a small test
The setup at a glance. You do it once, except the login, which comes back every trading day.

Steps 2 to 4 are where the waiting happens.

Ready-made copiers, or a custom build?

If your signal comes from outside, you don’t have to write the plumbing. We make two copiers that already speak Kite Connect. Both run on your own PC or VPS with your own API keys, and we never hold them.

The TradingView to Indian broker copier listens for your alerts on port 80 and turns each one into an order. It only takes alerts from TradingView’s own servers. For example, an alert with BUY, NIFTY, 24600, CE and one lot buys that call at the nearest expiry.

TradingView page of the TradingView to Indian broker copier with the webhook URL, its Copy button and the alert message
The TradingView page. Copy the webhook URL into your TradingView alert, then paste one of the ready-made alert messages below it.

The Telegram to Indian broker copier reads the channels you choose instead. An AI model reads each call, even in Hinglish. The app then checks the strike, premium and expiry itself before it places the order, as a protective limit by default.

Both turn the morning login into one click. Log in with Kite opens Kite’s own page in your browser, and once you sign in, the day’s token saves itself. Both also show the static IP your broker sees, with a Copy button, and warn you if it changes.

Dashboard of the Telegram to Indian broker copier with the static IP band and its Copy button
The static IP band at the top of the dashboard shows the address Zerodha must have on file. Copy it, then paste it under IP Whitelist in your Kite developer profile.

Both apps share the same brakes: a daily order cap, a lot cap and a kill switch, with a trading window of 09:15 to 15:15 by default. Paper mode fills orders in the app’s own book at live prices, so you can watch first. They trade index options, stock options and NSE cash equity, but refuse futures for now and don’t trade MCX.

When a custom build makes sense

Some traders want their own logic to automate Zerodha end to end, such as an options strategy that adjusts its legs or a scanner that picks stocks each morning. A copier can’t do that.

In that case we build it for you on Kite Connect, for one fixed price agreed before work starts, and the source code is yours. It comes with the static IP check, the daily login and the limits built in. See Zerodha automation for what we build, or Indian stock market automation for a strategy of your own. Other brokers are on the Indian broker automation page. For a sense of the cost first, read how much a trading bot costs, then ask for a quote.

Mistakes that stop the first order

Almost every failed first order traces back to one of these, so run down the list before the first live order of each day.

Pre-flight checklist to automate Zerodha orders: static IP whitelisted, today's login, the right product, caps, trading window and a test order
A pre-flight check for automated Zerodha orders.

Automate Zerodha: frequently asked questions

Is it legal to automate Zerodha?

Zerodha offers Kite Connect for exactly this, within SEBI’s rules. Since 1 April 2026, API orders need a whitelisted static IP and carry an exchange algo tag, and Kite still asks for a fresh login every day. For the wider picture, read our post on whether copy trading is legal in India.

Can I automate Zerodha without coding?

Yes. The ready-made copiers need no code at all. You add your Kite Connect keys, whitelist the IP and set your limits. After that, your alerts or Telegram calls drive the orders.

Do I need a static IP to automate Zerodha?

Only to place orders, but every automated setup does that. Since 1 April 2026, Zerodha accepts API orders only from a whitelisted static IP. Prices, positions and the order book still work from any address.

Why do I have to log in every day?

Because the Kite Connect access token expires at 6 AM the next day, as a regulatory rule. The ready-made copiers turn this into one click each morning with Log in with Kite.

Does Kite Connect cost money?

Only if your software needs live prices or candles. Placing orders works on the free plan, while streaming data needs the paid one. Check Zerodha’s site for the current terms.

Can one PC run accounts for my whole family?

Zerodha lets a spouse, dependent children and dependent parents share one static IP through a single developer account. Its guide has you create separate apps under that account and add every family member’s client ID to each app.

Can it trade futures or MCX?

Not with the ready-made copiers, which leave futures and MCX alone for now. Kite Connect itself accepts futures and MCX orders. A custom build on Kite Connect can cover more, so tell us what you trade.

Is my Zerodha account safe with automation?

Your Kite password and TOTP never go into the copiers, because Log in with Kite opens Kite’s own page. The Telegram copier does send the text of messages from the chats you select to the AI service set in the app, to turn them into orders; it does not copy them to our website. Your broker passwords stay on your PC. Our privacy policy lists what the apps send.

How much does it cost to automate Zerodha?

The cost depends on whether a ready-made copier fits or you need a custom build. Setup help comes with either one, so ask for a quote.

Want this built for you?

We develop it as a service — reliable, tested, and yours to own.

Message Us on WhatsApp
WhatsApp