Skip to main content

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:

  1. Go to Settings > Accounts
  2. Verify status: "Connected"
  3. If not, connect broker first

Screenshot: Connected account

2. Access Sync Historical

Option A: From Accounts

  1. Click three dots on account
  2. Select "Sync Historical Trades" or "Import History"

Option B: From Trades Page

  1. Look for "Sync Old Trades" banner/button
  2. Click to start import

Screenshot: Sync historical option

3. Select Date Range

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

Screenshot: Date range selection

4. Start Import

  1. Review date range
  2. Click "Start Import" or "Sync Historical"
  3. Process begins

Screenshot: Start import

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

Screenshot: Import progress

6. Import Complete

  • Success message
  • Total trades imported shown
  • View your complete history

Screenshot: Import complete

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

  1. Go to Trades page
  2. Filter by date range imported
  3. Spot-check few trades
  4. Verify P&L calculations

Organize Trades

  1. Add tags to old trades
  2. Rate past trades
  3. Add notes/reviews
  4. 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

Screenshot: Verification checklist

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