Listen aloud is not supported in this browser.
Zerodha (Kite Connect)
Connect Zerodha using Kite Connect API key, secret, and OAuth login.
How to get here
Navigation: Brokers › Add new Account › Zerodha (Kite Connect)
Prerequisites (Zerodha developer portal)
Before using Add Broker in ATPAlgo, complete these steps on developers.kite.trade:
- Active Zerodha trading account and Kite login
- Create a Kite Connect app (paid Connect plan may be required for live trading APIs)
- Set Redirect URL exactly to:
https://atpalgo.ai/zerodha-callback(also accepted:https://atpalgo.ai/zerodha-callback.html) - Note your API Key, API Secret, and Zerodha client ID (User ID, e.g. AB1234)
- If your broker requires static IP whitelisting, allocate an IP under Brokers › Static IPs first
Redirect URL must match
The redirect URL in the Kite Connect app must match your ATPAlgo domain exactly. A mismatch causes OAuth to fail after login.
Step 1 — Open Add Broker and name the account
- Sign in to ATPAlgo and go to Brokers › Add new Account (open Add Broker).
- Enter a display name for this account (e.g.
Zerodha Primary). - Click Next.
Step 1: Enter broker account display name.
Step 2 — Select Zerodha
- Search or scroll the broker grid and select Zerodha / Zerodha Kite.
- Click Next.
Step 2: Select Zerodha from the broker list.
Step 3 — Enter API credentials
- Enter your User ID (Zerodha client ID).
- Enter API Key and API Secret from the Kite Connect app.
- Confirm the on-screen reminder shows redirect URL
https://atpalgo.ai/zerodha-callback. - Click Next — ATPAlgo opens the Kite login popup automatically.
Step 3: User ID, API Key, and API Secret.
Step 4 — Complete OAuth login
- In the popup, log in to Zerodha Kite and approve the connection.
- Wait on the Authentication step — ATPAlgo exchanges the token automatically (about 60 seconds).
- When status shows Authenticated, click Next.
Step 4: Complete login in the Kite popup; ATPAlgo captures the token.
Step 5 — Finish setup
- Review the summary on Complete Setup.
- Click Finish Setup to save the broker.
- On My Brokers, confirm status is Connected and balance refreshes.
Step 5: Finish setup and verify on My Brokers.
Troubleshooting
| Issue | What to check |
|---|---|
| Popup blocked | Allow popups for your ATPAlgo domain |
| OAuth timeout | Complete Kite login within 1 minute; retry from My Brokers Connect |
| Invalid redirect | Redirect URL in Kite app must match https://atpalgo.ai/zerodha-callback |
| Disconnected after save | Use Connect on My Brokers to re-authenticate daily (Kite token expiry) |