Broker Connection
Connect your Zerodha account to AlgoTradingAI for real-time market data and full symbol access.
Prerequisites
- A Zerodha trading account.
- A KiteConnect app created on the Zerodha Developer Console.
- Your KiteConnect API key and API secret.
Step 1: Create a KiteConnect App
- Log in to developers.kite.trade.
- Click "Create new app".
- Fill in the app name (e.g., "AlgoTradingAI").
- Set the redirect URL to your AlgoTradingAI instance URL (provided in your settings page).
- Note your API Key and API Secret.
Step 2: Enter Credentials in AlgoTradingAI
- Navigate to Broker Integrations in the sidebar.
- Click Setup Zerodha.
- Enter your API Key and API Secret.
- Click Save.
Your credentials are encrypted at rest and never stored in plaintext. See our Security page for details.
Step 3: Authorize via OAuth
- After saving your credentials, click Authorize with Zerodha.
- You will be redirected to Zerodha's login page.
- Log in with your Zerodha credentials and authorize the app.
- You will be redirected back to AlgoTradingAI with an active session.
Session Management
- Zerodha access tokens expire daily. You need to re-authorize each trading day.
- AlgoTradingAI will prompt you to re-authorize when your session expires.
- You can revoke access at any time from Zerodha's app management page.
Without a Broker
If you don't connect a broker:
- You are limited to 2 symbols (Free plan hard cap).
- Market data is provided through an admin proxy with restricted operations.
- The Paper Trading Playground still works with proxied data.
- All AI features (Advisor, Predictor, Forecast) work with available data.
Troubleshooting
- Invalid API Key: Verify the key matches your KiteConnect app exactly. No spaces.
- Redirect URL mismatch: Ensure the redirect URL in your KiteConnect app matches the one shown in AlgoTradingAI settings.
- Session expired: Re-authorize by clicking the authorize button in Broker Integrations.
- Rate limits: KiteConnect has API rate limits. AlgoTradingAI respects these automatically with request throttling.
Next Steps
- Getting Started — Full platform walkthrough.
- API Reference — REST endpoint documentation.
- Security — How credentials are handled.