What This Workflow Does
This automation solves the tedious and error-prone process of manually recording trades in a journal. Active traders often spend hours each week copying trade details from their brokerage platform to spreadsheets, risking data entry mistakes that distort performance analysis.
The workflow connects directly to Interactive Brokers' API to fetch executed trades automatically. It then formats and logs this data to your designated Google Sheets journal with timestamps, instrument details, execution prices, commissions, and calculated P/L. This creates a complete, accurate record of all trading activity without manual intervention.
How It Works
1. Fetch trades from Interactive Brokers
The workflow authenticates with your IBKR account using secure API credentials. It queries the execution reports endpoint to retrieve all trades executed since the last sync, typically covering the previous trading day.
2. Process and format trade data
Raw trade data gets transformed into a standardized format. The workflow calculates net P/L after commissions, converts timestamps to your local timezone, and maps IBKR's instrument codes to recognizable symbols.
3. Update Google Sheets journal
Formatted trades are appended to your designated Google Sheet as new rows. The workflow maintains column structure and can optionally highlight unusual trades or flag potential errors for review.
Pro tip: Add a "Notes" column to your sheet where you can manually annotate trades with strategy details or observations for later analysis.
Who This Is For
This workflow benefits active traders who need accurate trade records but want to avoid manual data entry. It's ideal for:
- Day traders executing multiple trades daily
- Swing traders tracking position performance
- Algorithmic traders needing precise execution records
- Trading educators maintaining example portfolios
- Tax preparers compiling trade activity for clients
What You'll Need
- An Interactive Brokers account with API access enabled
- A Google account with Sheets access
- The template Google Sheet (provided in download)
- n8n instance or account to host the workflow
- Basic understanding of API credential management
Quick Setup Guide
- Download and import the JSON workflow file into your n8n instance
- Configure your IBKR API credentials in the first node
- Connect the Google Sheets node to your Google account
- Specify your target spreadsheet ID and worksheet name
- Set your preferred sync schedule (daily recommended)
- Test with a small set of historical trades before full deployment
Key Benefits
Save 2-5 hours weekly by eliminating manual trade logging while improving data accuracy. Automated capture prevents missed trades and entry errors.
Enhance performance analysis with complete, timestamped records of every execution. Identify your most profitable strategies and optimal trading times.
Simplify tax preparation with organized records of all trades, commissions, and net P/L. Export filtered views for specific tax years or accounts.
Reduce operational risk by removing human error from your record-keeping process. Automated systems don't forget to log trades or transpose numbers.