AlgoTradingAI
Docs/Broker Connection

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

  1. Log in to developers.kite.trade.
  2. Click "Create new app".
  3. Fill in the app name (e.g., "AlgoTradingAI").
  4. Set the redirect URL to your AlgoTradingAI instance URL (provided in your settings page).
  5. Note your API Key and API Secret.

Step 2: Enter Credentials in AlgoTradingAI

  1. Navigate to Broker Integrations in the sidebar.
  2. Click Setup Zerodha.
  3. Enter your API Key and API Secret.
  4. Click Save.

Your credentials are encrypted at rest and never stored in plaintext. See our Security page for details.

Step 3: Authorize via OAuth

  1. After saving your credentials, click Authorize with Zerodha.
  2. You will be redirected to Zerodha's login page.
  3. Log in with your Zerodha credentials and authorize the app.
  4. 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