Zerodha

Add and validate your Zerodha account in QUANT LEVELS.

Heads up: Zerodha's official Kite Connect API has no direct password+TOTP login - only a browser-redirect flow, which now also includes a one-time "Authorize this app" consent screen. We automate the whole thing internally (login, TOTP, and clicking Authorize when it appears), the same technique used by most copy-trading platforms for Zerodha. It is not officially documented by Zerodha and could break without warning if Zerodha changes their login page again - if your Zerodha account suddenly fails to log in, this is the most likely reason.

Step 1 - Create a Kite Connect app

First-time note: The Kite Connect developer console (developers.kite.trade) is separate from your normal Kite trading login. You cannot sign in there with your Kite trading id and password - you must first register for a Kite Connect developer account (a one-time sign-up).
  1. Sign up at developers.kite.trade and create a new app for this exact Zerodha account.
  2. Type: Select Personal (Free). It works with our platform - creating the app is compulsory, only the monthly fee is optional.
    Choose Zerodha's paid API instead (₹500/month, paid to Zerodha) if this account will be the master in master-child copy trading. The paid API tells us about a new order the moment you place it, so copying starts right away - on the free Personal API there can be a lag of up to about 3 seconds. This is the only case where the paid API helps. Keep the free Personal API for a child account, and for every account if you use PMS copy.
  3. Paste this as the Redirect URL: https://quantlevels.in/auth/zerodha. Leave the Postback URL blank unless you're on Zerodha's paid Connect plan (if you are, use https://quantlevels.in/postback/zerodha?key=jByKSan5riiFoxHxtetuI2dkBRkOA_dm).
  4. Copy both the API Key and API Secret - Zerodha needs both.
A Zerodha app only works for ONE Client ID. If you're adding more than one Zerodha account, create a separate app per account - otherwise you'll get "The user is not enabled for the app".

Step 2 - Set up external TOTP

We need the secret TOTP key Kite generates when you enable external TOTP - not the 6-digit codes themselves, the underlying secret, so we can generate codes automatically on your behalf (via an app like Google Authenticator's same algorithm).

  1. Login to the Kite website (kite.zerodha.com).
  2. Click your Login Id (top right) → your Name → Password & Security.
  3. Find the option to enable External TOTP.
Important: Copy the key generated during this step (click the "Can't scan? Copy the key" link) - this key will not be shown again once TOTP is enabled. If you already enabled TOTP earlier and don't have this key saved, disable and re-enable it to get a fresh one.
Note: After enabling TOTP, logout and log back in to Kite once (2-3 times if possible) before adding the account here.

Step 3 - Add the account

  1. Go to Accounts → Add New Account.
  2. Select Broker as Zerodha.
  3. Enter your Zerodha Client ID, your Zerodha login Password, TOTP Secret Key, API Key and API Secret.
  4. Save. Your access token auto-refreshes every day.

Common Issues

"The user is not enabled for the app"

This app was created for a different Zerodha Client ID. Create a fresh app for this specific account (see the warning above).

Login suddenly stopped working with no config change

Zerodha's login page structure may have changed, breaking the internal automation - this happened once already (2026-09-30, Zerodha added a new "Authorize" consent step mid-flow). This isn't something you can fix from your side - let us know so we can check and patch it.

Master account's manual trades aren't copying

Zerodha's Kite Connect postback only fires for orders placed through that app's own API key, not for trades placed manually via Zerodha's own Kite app/website. Master detection for Zerodha instead uses a live streaming connection that we maintain per master account - if this account was recently added as a master, allow a minute for the connection to establish.

Copy trading on Zerodha

Because Zerodha's postback doesn't cover manually-placed trades, we hold a persistent live connection to detect a Zerodha master's own trades in real time instead of relying on a webhook.

FAQ

Does Zerodha charge for Kite Connect?

Kite Connect (the official API) is a separate paid subscription from Zerodha, independent of our platform's own pricing. The free Personal plan works fine for slave/child accounts and for PMS copy - see the note in Step 1.