How to Sync Historical Trades (Old Trades)
Overview
Import your past trading history from broker for complete analysis.
What are Historical Trades?
Definition
📅 Trades executed before connecting broker
📅 Old trades not yet imported
📅 Complete trading history
📅 Can go back months or years
Steps
1. Connect Broker First
Ensure broker account is connected:
- Go to Settings > Accounts
- Verify status: "Connected" ✅
- If not, connect broker first

2. Access Sync Historical
Option A: From Accounts
- Click three dots on account
- Select "Sync Historical Trades" or "Import History"
Option B: From Trades Page
- Look for "Sync Old Trades" banner/button
- Click to start import

3. Select Date Range
- Dialog opens
- Choose start date (how far back)
- Choose end date (usually today)
- Or select preset: Last 3 months, 6 months, 1 year

4. Start Import
- Review date range
- Click "Start Import" or "Sync Historical"
- Process begins

5. Wait for Completion
- Progress bar shows status
- Can take 2-10 minutes for large history
- Don't close browser
- Number of trades found displayed

6. Import Complete
- Success message
- Total trades imported shown
- View your complete history

Success!
Your historical trades are now imported.
Import Limits by Broker
Zerodha
- Up to 3 months history
- Per day: All trades
- Segments: All supported
Fyers
- Up to 90 days history
- Per day: All trades
- Segments: All supported
Angel One
- Up to 1 year history
- Per day: All trades
- Full trade book
Others
- Varies by broker
- Check broker API limitations
- Some: 30 days to 1 year
Data Imported
What Gets Imported
✅ All executed orders
✅ Entry and exit times
✅ Prices and quantities
✅ Brokerage fees
✅ Taxes paid
✅ Symbol details
✅ Segment information
Trade Matching
- Buys and sells matched automatically
- Position aggregation by FIFO/LIFO
- Intraday vs delivery identified
- Net P&L calculated
Important Notes
First-Time Import
⏰ Takes longer (complete history)
⏰ Be patient
⏰ Large datasets: 5-10 minutes
Subsequent Syncs
⚡ Only new trades imported
⚡ Much faster
⚡ Automatic duplicate prevention
Duplicate Prevention
✅ System checks existing trades
✅ Skips already imported
✅ Only new trades added
✅ Safe to run multiple times
After Import
Verify Imported Data
- Go to Trades page
- Filter by date range imported
- Spot-check few trades
- Verify P&L calculations
Organize Trades
- Add tags to old trades
- Rate past trades
- Add notes/reviews
- Create strategies
Common Issues
Partial History Only
- Broker API limitation
- Import available range
- Request older trades via CSV
Some Trades Missing
- Check broker transaction history
- Verify trades were executed
- Some orders may be cancelled/pending
Incorrect P&L
- Check calculation method
- Verify fees included
- May need manual correction

Best Practices
For Complete History
✅ Import as far back as allowed
✅ Fill gaps with CSV import
✅ Verify against broker statements
✅ Tag and organize imported trades
✅ Review P&L accuracy
Maintain History
✅ Connect broker early
✅ Regular syncs prevent gaps
✅ Export backups periodically
✅ Keep broker account active
Quick Tips
- Import history right after connecting
- Go back as far as possible
- Verify against broker statements
- Supplement with CSV for older trades
- One-time process per account
Next Steps
Troubleshooting
Import stuck? Wait patiently, large imports take time
Limited history? Broker API limitation
Trades missing? Check broker's available range
Wrong P&L? Verify calculation method
Import failed? Try smaller date range
Need help? Contact support@tradelyser.com