How to Connect Zerodha Account with OAuth
Overview
Securely connect your Zerodha account using Kite Connect for automatic trade sync.
Prerequisites
- Active Zerodha trading account
- Zerodha Kite login credentials
- Internet connection
Steps
1. Navigate to Accounts
- Go to Settings > Accounts
- Click "+ Add Account" button

2. Select Zerodha
- Find Zerodha in broker list
- Click on Zerodha card

3. Choose Calculation Method
Select your preferred method:
- FIFO (Recommended for intraday)
- LIFO
- Weighted Average
Click "Next"

4. Select Auto Sync
- Choose "Auto Sync" connection mode
- Click "Next"

5. Enter Account Name
- Enter descriptive name (e.g., "Zerodha - Intraday")
- Click "Connect with Zerodha"

6. Zerodha Login (Redirect)
You'll be redirected to Zerodha Kite:
- Enter your Zerodha User ID
- Enter your Password
- Enter TOTP (from authenticator app)
- Click "Login"

7. Authorize Tradelyser
- Review permissions requested
- Click "Authorize" button
- You'll be redirected back to Tradelyser

8. Connection Complete
- Success message appears
- Status shows "Connected" ✅
- Initial sync begins automatically

Success!
Your Zerodha account is connected and syncing trades.
What Gets Synced
Automatically Synced
✅ Executed orders
✅ Completed trades
✅ Open positions
✅ Historical data (configurable)
✅ Entry and exit prices
✅ Quantities and fees
Sync Frequency
- Real-time: During market hours
- Periodic: Every 4 hours
- Manual: On-demand sync available
Connection Details
OAuth Benefits
🔒 Secure: No storing of passwords
🔄 Auto-refresh: Tokens renewed automatically
⚡ Fast: Quick authorization
🛡️ Safe: Zerodha-approved method
Required Permissions
- Read order history
- Read positions
- Read holdings
- Read profile info

Managing Connection
View Status
- Check green "Connected" indicator
- View last sync time
- See sync history
Re-authorize
If connection expires:
- Click "Re-connect" button
- Complete authorization again
Disconnect
- Click three dots menu
- Select "Disconnect"
- Confirm action
Quick Tips
- Keep Zerodha 2FA app handy
- Authorization valid for 1 day
- Re-authorize daily for continued sync
- Use same Zerodha account consistently
- Check sync status before analyzing
Trading Hours Sync
📅 Market Open (9:15 AM - 3:30 PM)
- Syncs every 15-30 minutes
- Near real-time updates
📅 After Market Close
- Final sync at 4:00 PM
- Daily reconciliation
Next Steps
Troubleshooting
Authorization failed? Check Zerodha credentials
Connection expired? Re-authorize daily
Trades not syncing? Check connection status
Wrong trades imported? Verify Zerodha account
TOTP issues? Sync your authenticator app time
Need help? Contact support@tradelyser.com