Quick answer: to run an algo trading system on the cloud with Zerodha’s Kite Connect API, build your strategy locally with an official client library, then run it on a small cloud server in a Mumbai region with a fixed public IP address. Since 1 April 2026, Zerodha requires a registered static IP for every API order, so the server’s outgoing IP must match the one on your Kite Connect developer dashboard. The access token expires at 6 AM each day, so plan for a daily login, respect the API rate limits, and add risk limits, logging and alerts before trading real money.
This guide covers the API, what changed in 2026, the parts of a trading system, how to choose and set up cloud hosting, and the limits to design around. It is a technical guide, not investment advice: automated strategies can lose money quickly, so test thoroughly and start small.
Understanding Algo Trading and Zerodha Kite Connect API
Algorithmic trading means using software to place orders automatically when predefined conditions are met, such as price levels, indicators or time of day. Kite Connect is Zerodha’s set of HTTP APIs for placing and managing orders, reading positions and holdings, and, on the paid plan, streaming live prices over WebSockets and downloading historical candles. Official client libraries, such as pykiteconnect for Python, handle the details.
According to Zerodha’s support page on API charges, there are two plans:
| Plan | Price | Includes |
|---|---|---|
| Personal | Free | Orders, GTT, alerts, margins and portfolio. No live or historical market data |
| Connect | ₹500 per app per month | Everything in Personal, plus real-time data over WebSockets and historical candles |
A strategy that reacts to live prices needs the Connect plan, or another licensed data source.
What changed in 2026: static IP and market protection
SEBI’s framework for retail algo trading has changed how API orders work:
- Static IP for orders. Zerodha’s static IP article says that from 1 April 2026 you must register a static IP for API-based order placement. You can register up to two IPs, a primary and an optional secondary, and change them only once per calendar week. Market data, WebSockets, the order book and positions can still be called from any IP. The IP must be used only by you or your immediate family.
- Market protection on market orders. Zerodha announced that market and SL-M orders placed through the API must include market protection; orders with market protection set to zero are rejected. Limit orders are unchanged.
- Registration for faster strategies. Under the framework, strategies that go above the exchange’s orders-per-second threshold must be registered with the exchange through your broker. Check with Zerodha before running anything that places orders at high frequency.
The static IP rule is the biggest change for cloud hosting: a home connection with a changing IP no longer works for placing orders, while a cloud server with a fixed IP does.
Why Deploy Algo Trading Systems on the Cloud?
- A fixed IP address that meets the static IP rule.
- Reliability: no dependence on a home laptop, power or broadband during market hours.
- Lower latency when the server is in a Mumbai region, close to the exchanges and the broker.
- Monitoring and logs you can check from anywhere, with alerts to your phone.
- Low cost: most individual strategies run comfortably on a small virtual server.
Key Components of a Cloud-Based Algo Trading System
| Component | What it does |
|---|---|
| Login and session handler | Completes the daily login, exchanges the request token for an access token and stores it securely |
| Market data | Subscribes to live prices over WebSocket and fetches historical candles for indicators and backtests |
| Strategy engine | Turns prices into signals according to your rules |
| Risk manager | Checks every order against limits: position size, maximum loss per day, number of open orders and allowed instruments |
| Order manager | Places, modifies and cancels orders, tracks their status and reconciles positions with the broker |
| Logging and alerts | Records every signal, order and error, and alerts you when something fails |
| Dashboard (optional) | Shows positions, P&L and system health, and lets you pause the strategy |
Keep the risk manager separate from the strategy and make it impossible to bypass. A “kill switch” that cancels open orders and stops new ones is the single most useful safety feature.
Choosing the Right Cloud Platform
AWS, Microsoft Azure and Google Cloud all have Mumbai regions and offer reserved static IP addresses (Elastic IPs on AWS, static public IPs on Azure and Google Cloud). For a single strategy, a small always-on virtual machine is usually the right choice. Avoid set-ups where the outgoing IP can change, such as auto-scaling groups or serverless functions without a fixed outbound address. If you use containers, make sure their traffic leaves through a fixed IP, for example via a NAT gateway with a reserved address. Our guide to Docker vs Kubernetes explains why Kubernetes is usually more than a single trading bot needs.
Free resource
UPI acceptance readiness checklist
Want this applied to your project? Our engineers will send it with notes for your stack.
Step-by-Step Guide to Deploying Algo Trading System on Cloud Using Zerodha Kite Connect API
Step 1: Set up Kite Connect API access
Create an app on the Kite Connect developer site, choose the plan you need, note the API key and secret, and set a redirect URL. Keep the API secret on the server only; never put it in a browser or mobile app.
Step 2: Develop and backtest locally
Write the strategy with an official library and test it against historical data. A minimal Python session looks like this:
from kiteconnect import KiteConnect
kite = KiteConnect(api_key=API_KEY)
# After the user logs in, Kite redirects back with a request_token
session = kite.generate_session(request_token, api_secret=API_SECRET)
kite.set_access_token(session["access_token"])
print(kite.positions())
Be honest with backtests: include brokerage, taxes and slippage, and test on data the strategy was not tuned on.
Step 3: Get a server with a static IP
Create a small virtual machine in a Mumbai region, attach a reserved static IP, and register that IP as the primary IP on your Kite Connect app. Optionally register a second server as the secondary IP for failover. Remember the once-a-week change limit before you rebuild servers.
Step 4: Package and deploy
Package the application with Docker or a simple virtual environment, run it as a service that restarts automatically if it crashes, and keep the API secret and access token in environment variables or a secrets manager, not in the code.
Step 5: Handle the daily login
According to the Kite Connect login documentation, the access token expires at 6 AM the next day, as a regulatory requirement, and can also be ended earlier by a logout. Build a simple page on your server for the morning login, and make the system refuse to trade, and alert you, if it does not have a valid token.
Step 6: Add monitoring and alerts
Use your cloud provider’s monitoring, such as CloudWatch, Azure Monitor or Cloud Monitoring, plus application alerts to email, Telegram or SMS for failed orders, rejected requests, lost WebSocket connections and breached risk limits.
Step 7: Secure the server
Allow SSH only from your own address or through your cloud provider’s console, use key-based login and multi-factor authentication on the cloud account, keep the operating system patched, and encrypt stored tokens and logs.
Step 8: Paper trade, then go live small
Run the full system with orders logged but not placed, compare its decisions with the market, then go live with the smallest position sizes and tight daily loss limits. Increase size only after the system has behaved correctly for a sustained period.
Kite Connect limits to design around
The Kite Connect documentation lists these limits:
| Limit | Value |
|---|---|
| Quote API | 1 request per second |
| Historical candles | 3 requests per second |
| Order placement and other endpoints | 10 requests per second |
| Orders | 400 per minute and 5,000 per day |
| Modifications | 25 per order |
| WebSocket | Up to 3,000 instruments per connection and 3 connections per API key |
Use the WebSocket for live prices instead of polling the quote API, queue orders so bursts never exceed the limits, and handle rejected requests without blindly retrying orders, which can create duplicates.
Best Practices for Cloud-Based Algo Trading with Zerodha Kite Connect API
- Reconcile with the broker: treat Kite’s order book and positions as the source of truth, and check them regularly against what your system thinks it holds.
- Make orders idempotent: tag orders so a retry after a timeout cannot place the same order twice.
- Prefer limit orders where possible, and always set market protection on market orders.
- Handle disconnects: reconnect the WebSocket automatically and pause trading while data is stale.
- Keep an audit trail of every signal, order and change to the strategy.
- Respect data rules: Kite Connect data is for your own use; showing or redistributing it to others needs separate licensing.
Challenges and How to Overcome Them
Latency: host in Mumbai and keep processing simple; retail API trading is not designed for high-frequency strategies. Outages: brokers, exchanges and cloud servers all have incidents, so design for safe failure, with no new orders when anything is uncertain. Strategy decay: markets change, so review performance regularly and switch off strategies that stop working. Regulation: rules for retail algos are still evolving, so watch Zerodha’s announcements.
Frequently asked questions
Is the Kite Connect API free?
The Personal plan is free for orders and portfolio functions, without market data. The Connect plan with live and historical data costs ₹500 per app per month, according to Zerodha’s support page.
Do I need a static IP for Zerodha API trading?
Yes, for placing orders since 1 April 2026. Market data and other read-only calls can still come from any IP.
Can I fully automate the daily login?
Zerodha’s documented flow is a user login that returns a request token, with the access token expiring at 6 AM the next day. Plan for a quick manual login each trading day rather than workarounds that may breach the broker’s terms.
Which cloud region should I use?
A Mumbai region on AWS, Azure or Google Cloud keeps latency to the broker low. For most retail strategies, reliability and correct risk controls matter more than milliseconds.
Need help building or hosting a trading tool?
Vibidsoft builds the technical side of trading and fintech tools: broker and payment API integrations, dashboards and cloud hosting with monitoring. We do not provide trading strategies or investment advice. We start with a fixed-price assessment from $1,500 that produces a written plan and cost, build in milestones paid on acceptance, and look after live systems on a care plan from $1,500 a month. We never bill by the hour. For live data in a web dashboard, see our guide to integrating APIs for live data updates.
