How to Connect Angel One with API
Overview
Connect your Angel One (Angel Broking) account using API credentials for automatic trade sync.
Prerequisites
- Active Angel One trading account
- Angel One API credentials (API Key, Client ID, Secret)
- Knowledge of how to generate API keys in Angel One
Generate API Credentials (One-Time Setup)
Step A: Login to Angel One Portal
- Go to Angel One website
- Login with your credentials
- Navigate to "API" or "Developer Console" section
Step B: Generate API Key
- Click "Create API Key" or "Generate"
- Copy and save:
- API Key
- Secret Key
- Client ID (your Angel One user ID)
- Keep these secure

Connect to Tradelyser
1. Go to Accounts
- Navigate to Settings > Accounts
- Click "+ Add Account"

2. Select Angel One
- Find Angel One in broker list
- Click on Angel One card

3. Configure Settings
- Choose Calculation Method (FIFO recommended)
- Select "Auto Sync" mode
- Click "Next"

4. Enter API Credentials
- Account Name: Enter descriptive name
- Client ID: Your Angel One user ID
- API Key: Paste your API key
- Secret Key: Paste your secret key
- Click "Save & Connect"

5. Verify Connection
- System validates credentials
- Tests API connectivity
- Shows success message if valid

6. Connection Complete
- Status shows "Connected" ✅
- Initial sync begins
- Historical trades imported

Success!
Angel One account is connected and syncing.
What Gets Synced
Automatic Import
✅ Order book
✅ Trade book
✅ Open positions
✅ Holdings
✅ Entry/Exit prices
✅ Brokerage and taxes
✅ Quantities
Sync Frequency
- Real-time: Every 30-60 minutes during market hours
- Daily: Complete reconciliation at EOD
- Manual: On-demand anytime
API Connection Benefits
Advantages
🔑 Permanent: No daily re-authorization
🔄 Reliable: Direct API integration
⚡ Fast: Quick data sync
🔒 Secure: Encrypted communication
Security Notes
- API keys stored encrypted
- Never shared with third parties
- Can be revoked anytime from Angel One portal
- Tradelyser cannot place orders (read-only access)

Managing Connection
Check Status
- Go to Settings > Accounts
- View green "Connected" indicator
- Check last sync timestamp
Manual Sync
- Click three dots on account
- Select "Sync Now"
- Wait for sync completion
Update Credentials
If API key changes:
- Click three dots > "Edit"
- Update API credentials
- Save changes
Disconnect
- Click three dots menu
- Select "Disconnect"
- Confirm action
- Revoke API key from Angel One portal
Quick Tips
- Store API credentials securely
- Never share API keys publicly
- Use separate API for Tradelyser
- Revoke old keys if compromised
- Test connection after setup
Angel One Specific Features
- Supports equity, F&O, commodity, currency
- Intraday and delivery positions
- GTT orders tracking
- AMO orders import
- Historical data up to 1 year
API Permissions Required
✅ Read: Order history
✅ Read: Trade book
✅ Read: Positions
✅ Read: Holdings
❌ No Write: Cannot place orders
❌ No Delete: Cannot cancel orders
Next Steps
Troubleshooting
Invalid API Key? Verify credentials from Angel One
Connection failed? Check API key is active
Trades not syncing? Do manual sync
Wrong data imported? Verify Client ID
API expired? Generate new key
Need help? Contact support@tradelyser.com