How to Connect Zerodha with Tradetron: Step-by-Step Guide (2026)

Author: Tradetron Team | Reviewed by: Tradetron Team | Published: 30 August 2026 | Last updated: 30 August 2026

Quick Answer

To connect Zerodha with Tradetron, add Zerodha as a broker in Tradetron first (placeholder details are fine to start), buy a static IP from Tradetron's Broker and Exchange page (₹100/month), create a Kite Connect app at developers.kite.trade, set the redirect and postback URLs to Tradetron's Zerodha endpoints using your Tradetron user ID, whitelist the static IP you bought on your Kite Connect developer profile, then go back into Tradetron and enter your real API key, API secret, Zerodha username, password and PIN under Broker and Exchange. Log in again each trading morning by 8:30 AM, before the market opens at 9:15.

The setup itself is done once. The daily login is a short step. Below is exactly what each part involves, and what to check when it does not work.

New to algorithmic trading altogether? Start with How to Get Started in the World of Algorithmic Trading: A Guide for Beginners first — this guide assumes you already know what a strategy builder and a backtest are, and picks up at the Zerodha-specific setup. If you trade on other brokers too, see our guides for Angel One and Dhan, or the general How to Connect Your Broker to Tradetron overview.

What You Need Before Connecting Zerodha with Tradetron

Have these ready before you start:

  • An active Zerodha trading account with the segments you intend to trade enabled: equity, F&O, or commodity.

  • A Tradetron account, and your Tradetron user ID. You will need this ID during the Kite app setup, and using the wrong one is the single most common reason this setup fails. Your Tradetron user ID is not your Zerodha client ID.

  • A Kite Connect developer account at developers.kite.trade. This is separate from your normal Kite login.

  • A Kite Connect app, which produces your API key and API secret.

  • A static IP address. Buy this from Tradetron (₹100/month, from the Broker and Exchange page) and whitelist it on your Kite Connect developer profile. Zerodha requires this for API order placement and rejects order requests that arrive from an IP you have not registered.

  • Your Zerodha login credentials: username, password and PIN. These go into Tradetron's broker form and are used for the daily login step.

How to Connect Zerodha with Tradetron

The process runs across Tradetron and Zerodha's developer console, in this order: add the broker in Tradetron first, buy your static IP, configure Kite Connect, then come back and enter your real credentials. If anything below doesn't match what you see on screen, Tradetron's setup help centre has the current step-by-step walkthrough.

Part 1: Add the broker in Tradetron and buy a static IP

Step 1. Log in to Tradetron and open Broker and Exchange from your account menu.

Step 2. Click Add Broker and select Zerodha. Enter placeholder details for now — you'll come back and replace them with your real credentials once the rest of the setup is done. Adding the broker entry first is what makes the static IP purchase option appear.

Step 3. Buy a static IP from the Broker and Exchange page. It costs ₹100 a month. You'll whitelist this address on Zerodha's side in Part 2.

Part 2: On the Kite Connect developer console

Step 1. Log in at developers.kite.trade. Use your Zerodha credentials. If you have not signed up for Kite Connect before, register first, then choose your plan. Zerodha offers a free Personal plan covering order, GTT and alerts management, and a paid plan at ₹500 per month per API key that adds live and historical market data.

Step 2. Create a new app. Go to My Apps and click Create New App. Zerodha asks for an app name, your Zerodha client ID, a redirect URL, and an optional postback URL. Name the app something you will recognise later, such as Tradetron.

Step 3. Set the redirect URL. This is the field most people get wrong. Enter:

https://zerodha.tradetron.tech/login.php?user=YOUR_TRADETRON_USER_ID

Replace YOUR_TRADETRON_USER_ID with your Tradetron user ID. Not your Zerodha client ID. If you put your Zerodha client ID here, the Kite login will complete successfully and then fail to hand the session back to your Tradetron account, which produces a confusing failure where Zerodha appears to work and Tradetron appears to be broken.

Step 4. Set the postback URL. Enter:

https://zerodha.tradetron.tech/status-update.php?user=YOUR_TRADETRON_USER_ID

Again, the user= value is your Tradetron user ID. The postback URL is how Zerodha notifies Tradetron when an order's status changes, so leaving it blank or pointing it at the wrong user means your Tradetron dashboard will not reflect fills correctly even when orders are reaching the exchange.

Step 5. Save the app and copy your credentials. Zerodha generates an API key and an API secret. Copy both. Treat the secret like a password and never paste it anywhere except Tradetron's broker connection form.

Step 6. Whitelist the static IP you bought from Tradetron. Open the Profile section of your Kite Connect developer console and add that address under the IP whitelist. A few things worth knowing here:

  • The static IP configuration applies at the developer account level and covers every app under that account. You cannot set different IPs for individual apps.

  • You can register up to two addresses: one primary, which is mandatory, and one secondary, which is optional.

  • Both IPv4 and IPv6 are supported, but the address you whitelist must match the public IP your order requests actually arrive from. If your traffic egresses over IPv6 and you have only whitelisted an IPv4 address, orders are rejected.

  • You can change the registered IP only once per calendar week, so get it right the first time.

  • The requirement applies to order placement. Other endpoints, such as market data, positions and order book, remain reachable from any IP, which is why a misconfigured IP often looks like "everything works except orders."

Zerodha permits sharing a static IP only with immediate family, meaning a spouse, dependent children or dependent parents. Sharing more widely can result in suspension of the Kite Connect account and its API keys.

Part 3: Back in Tradetron, enter your real credentials

Step 1. Open Broker and Exchange and edit the Zerodha entry you created in Part 1.

Step 2. Replace the placeholder details with your real credentials:

Field

What to enter

API Key

The API key from your Kite Connect app

API Secret

The API secret from your Kite Connect app

Zerodha Username

Your Zerodha login username

Password

Your Zerodha login password

PIN

Your Zerodha PIN

Token

Leave blank

Leave the Token field empty. Do not paste anything into it during setup.

Check every field for spaces before you save. Copying a key or secret from a browser very often drags a leading or trailing space along with it, and a single stray space anywhere in any of these fields will cause the connection to fail validation. Spaces are invisible in the input box, which is why this is worth checking deliberately rather than assuming.

Step 3. Save the connection. Tradetron validates the credentials and confirms whether the broker was added.

Step 4. Authorise for the first time. Complete the Kite authorisation flow once now, before deploying anything live. This confirms the redirect URL, the credentials and the static IP are all correct as a chain, rather than discovering a break at 9:15 AM on a live trading day.

Once these steps are complete, your Zerodha account is linked and able to receive orders from any strategy you run. If you want the shorter product-level overview of what the integration supports, see Tradetron's Zerodha algo trading page.

How Does the Zerodha and Tradetron Integration Work?

The order of operations is straightforward once you see it laid out: Strategy → Tradetron → Kite Connect API → Zerodha → Exchange.

You define entry rules, exit rules, position sizing and risk limits in Tradetron's strategy builder. When your conditions are met during market hours, Tradetron sends an order instruction through Zerodha's Kite Connect API. Zerodha checks it against your available margin and exchange rules, then routes it to the exchange. Status updates flow back to Tradetron through the postback URL you configured, which is why that field matters.

Tradetron cannot move money out of your account or change your account settings. It can place, modify and cancel orders within the permissions the Kite Connect API grants, and only while a valid access token for that day exists.

What Does Zerodha's Kite Connect Require?

Kite Connect is Zerodha's official API layer for third-party platforms. A few requirements are worth understanding rather than skimming:

  • Your API key and secret are yours alone. Every Tradetron user connecting Zerodha creates their own Kite Connect app and generates their own pair.

  • A static IP is required for order placement regardless of how few orders you place. There is no low-volume exemption.

  • There is a rate limit of 10 orders per second per trading account. Requests beyond that are rejected. The limit applies per client account, not per app, and rejected invalid orders still count toward your usage.

  • Market orders must carry market protection. An order submitted with market protection set to zero is treated as unprotected and rejected. This applies to SL-M orders too.

  • MCX does not accept IOC validity in the algo segment. Use Day validity for MCX orders instead.

  • You do not need to write code. The Kite Connect console is a web form. You are copying values between two interfaces, not building an integration.

Whether your Zerodha account has Kite Connect access, and which plan applies, is a Zerodha-side entitlement. Check the API section of your Zerodha console or contact Zerodha support directly.

Zerodha's Daily Login

This is the part that catches new users out, because it is not a one-time step.

Zerodha access tokens are valid for a single trading day. Log in again each trading morning by 8:30 AM, before the market opens at 9:15, and you are set for the rest of that day.

This is not a Tradetron restriction. Exchange rules require a login at least once per trading day for API-based trading, which is why no Indian broker offers an access token that stays valid indefinitely.

If you skip the morning login, your strategies remain configured but cannot place live orders on Zerodha that day. Paper trading and backtesting inside Tradetron are unaffected.

Why Isn't My Zerodha and Tradetron Connection Working?

Most failures come down to a small set of causes. Work through them in this order:

  • The redirect URL uses the wrong user ID. This is the most common failure in this setup. The user= value in both the redirect URL and the postback URL must be your Tradetron user ID, not your Zerodha client ID. Symptom: the Kite login screen appears and completes, but Tradetron never registers an authorised session. Fix it in the Kite app settings, save, and authorise again.

  • The postback URL is missing or wrong. Orders may reach the exchange, but Tradetron will not receive status updates, so your dashboard shows stale or missing fills. Check that the postback URL is set and carries the same Tradetron user ID.

  • A space in a pasted credential. A leading or trailing space in the API key, secret, username, password or PIN causes validation to fail. Retype rather than repaste if you are unsure.

  • The static IP is not whitelisted, or does not match. Order requests from an unregistered IP are rejected while everything else on the connection continues to look healthy. Check the public IP your requests actually egress from and confirm it matches what is registered, including the correct IP version.

  • The daily login was not completed. The broker shows as added but cannot place live orders until you log in for that day.

  • Market protection not set on a market order. Zerodha rejects unprotected market orders placed through the API.

  • IOC validity used on an MCX order. Not supported in the algo segment. Switch to Day.

  • Orders not executing despite a connected status. Check available margin, and check that the segment you are trading is actually enabled on your Zerodha account.

If none of these resolve it, Tradetron support can inspect the connection from the platform side, and Zerodha support can confirm whether the API key is active and correctly permissioned. Tradetron's helpdesk covers the edge cases beyond this list.

How to Test the Connection

Before putting real capital behind it, confirm the whole chain works.

Add the broker, complete the authorisation, then deploy a simple strategy in paper trading mode. Paper trading runs on live market data with simulated funds, so you can watch orders trigger, positions open and close, and confirm that what your strategy intends is what actually reaches your account, without risking capital while you are still validating the setup.

Watch for one thing specifically: whether order status updates appear in Tradetron promptly. If orders execute but statuses lag or never arrive, your postback URL is the first thing to check.

Once a strategy has behaved correctly across several live sessions in paper trading, switch it to live mode, ideally starting with a small allocation.

Can You Automate Zerodha Trading with Tradetron?

Yes. Once connected, Tradetron places, modifies and manages orders automatically according to the rules you define, with no manual clicking. You build the logic visually, covering entry conditions, exit conditions, stop-loss and position sizing, and Tradetron executes it through Zerodha's API whenever your conditions are met during market hours.

This works across equity, F&O and commodity segments, depending on what is enabled on your Zerodha account, and you can run multiple strategies on the same connected account at once. For the full product view, see Tradetron's Zerodha integration page.

Frequently Asked Questions

How do I connect Zerodha to Tradetron?


Add Zerodha as a broker in Tradetron with placeholder details first, buy a static IP from Tradetron's Broker and Exchange page, create a Kite Connect app at developers.kite.trade, set the redirect and postback URLs to Tradetron's Zerodha endpoints using your Tradetron user ID, whitelist the static IP on your developer profile, then return to Tradetron and enter your real API key, API secret, Zerodha username, password and PIN.

What redirect URL should I use for Zerodha and Tradetron?


Use https://zerodha.tradetron.tech/login.php?user=YOUR_TRADETRON_USER_ID, replacing the placeholder with your Tradetron user ID. Using your Zerodha client ID here is the most common cause of a failed connection.

What is the postback URL for Tradetron and Zerodha

Use https://zerodha.tradetron.tech/status-update.php?user=YOUR_TRADETRON_USER_ID, again with your Tradetron user ID. The postback URL is how Zerodha sends order status updates back to Tradetron.

What credentials does Tradetron need for Zerodha?


Your Kite Connect API key and API secret, plus your Zerodha username, password and PIN. Leave the Token field blank. Make sure no field contains a leading or trailing space.

When do I need to log in to keep my Zerodha connection active?


Log in again each trading morning by 8:30 AM, before the market opens at 9:15.

Do I need a static IP to connect Zerodha with Tradetron?


Yes, Buy one from Tradetron's Broker and Exchange page (₹100/month) and whitelist it on your Kite Connect developer profile. It's required for API order placement regardless of order volume, and applies to every app under that developer account.

Can I automate trades on Zerodha using Tradetron?


Yes. Once connected, Tradetron can place, modify and manage orders on your Zerodha account automatically, based on the strategy rules you define, across equity, F&O and commodity segments.

Is coding required to connect Zerodha with Tradetron?


No. The connection involves copying values between two web forms, and Tradetron's strategy builder is fully no-code.

Why is my Zerodha connection not working? The most common causes are a redirect or postback URL carrying the Zerodha client ID instead of the Tradetron user ID, a space in a pasted credential, an unwhitelisted static IP, or a missed daily login.

Can I paper trade before going live? Yes, and it is the recommended way to validate a new connection. Paper trading runs on live market data with simulated funds, so you can confirm the setup before risking real capital.

Can I use other brokers with Tradetron alongside Zerodha? Yes. Tradetron supports a broad range of additional brokers across multiple exchanges, and your strategy logic stays intact if you connect additional brokers or switch later.

Conclusion

Connecting Zerodha with Tradetron comes down to a few things done in order: add the broker in Tradetron first, buy a static IP, set up a Kite Connect app with the redirect and postback URLs pointing at your Tradetron user ID, whitelist the static IP, and enter your Zerodha credentials cleanly with no stray spaces. After that, a short login each trading morning by 8:30 AM.

None of it requires code. Test it in paper trading first, confirm order statuses are flowing back correctly, and only then move to live capital.

If you trade on other brokers too, see our guides for Angel One and Dhan.

Ready to connect your account? Head to the Zerodha page on Tradetron to get started.

Disclaimer: This article is for educational purposes only and does not constitute financial or investment advice. Trading in securities and derivatives carries risk. Consult a SEBI-registered advisor before making trading decisions.

Want to join Tradetron ?

Thousands of traders have moved to Algo, what are you waiting for?