Auto sync
Categories
Auto sync
Auto sync for Interactive Brokers uses the IBKR Flex Web Service. Once set up, journl. can import historical trades for the selected range and continue pulling new trades automatically going forward. For what the sync gives you once trades are in, see the Interactive Brokers trading journal overview.
Plans: Basic syncs when you press Sync now. Premium and Pro also sync automatically every few hours, so each day's trades arrive soon after IBKR publishes them. The Free plan uses Manual import instead.
In journl., the API Key field should contain your IBKR Flex Token, and the Query ID field should contain your Activity Flex Query ID.
1. Start the connection in journl.
- Open Account center by clicking your profile image and name in the top right corner.
- Open the Trading tab.
- Select Interactive Brokers as your broker.
- Keep this screen open. You will paste your IBKR Flex Token and Activity Flex Query ID here after creating them in IBKR.

2. Generate your Flex Token in IBKR
- Log in to the Interactive Brokers Client Portal.
- Go to Performance & Reports, then open Flex Queries.
- Find Flex Web Service Configuration and open its settings.
- Enable the Flex Web Service if it is not already enabled.
- Choose a long activation period that fits your workflow.
- Click Generate New Token, then save.
- Copy the generated token. This is the value you will paste into the API Key field in journl.
IBKR issues the token through the Flex Web Service configuration page. IBKR also notes that Flex Web Service access depends on a token plus one or more query IDs for the reports you want to fetch.
3. Create your Activity Flex Query ID in IBKR
- Stay on the Flex Queries page.
- Click the + icon next to Activity Flex Query.
- Give the query a clear name, for example journlAutoSync.
- Under Sections, choose Trades.
- Inside Trades, select Executions, then click Select All, then save that section. This includes Account Alias, so your account names from IBKR show up in journl.
- Optional: also choose Cash Transactions and Net Asset Value (NAV) in Base (Select All in each). journl. then shows your deposits, withdrawals and account balance in Cash & Balance.
- For delivery settings, choose CSV and keep column headers enabled.
- If you have multiple accounts, select every account you want to sync. One query can include several accounts.
- Use these date and time settings:
- Date format: yyyyMMdd
- Time format: HHmmss
- Date/Time separator: ; (semicolon)
- Period: Last 365 Days
- Continue, create the query, then reopen it and copy the Activity Flex Query ID.
4. Finish the connection in journl.
- Return to Account center in journl.
- Paste the Flex Token into the API Key field.
- Paste the Activity Flex Query ID into the Query ID field.
- Optionally set an expiration date so journl. can remind you before the token or setup needs attention.
- Click Add. The key appears under Saved API Keys with its last sync time.
- To sync again later, click the sync icon next to the saved key (Sync now).
Common issues to check
- Make sure there is at least one day of trading data available in the IBKR account.
- Make sure the Flex Token was copied correctly.
- Make sure the Activity Flex Query ID was copied from the correct query.
- Make sure the date format is yyyyMMdd.
- Make sure the time format is HHmmss.
- Make sure the date/time separator is a semicolon (;). A query created with other date settings imports trades at the wrong time of day, so edit the query and sync again.
- If the form is greyed out, your plan has no free sync connection. Free has none, Basic and Premium include one, Pro includes as many as you need.
When to use manual import instead
- Your broker connection is not supported yet.
- You only want to import a specific historical range.
- You prefer working from a CSV export.
- You want a one time backfill before relying on sync.
If auto sync is not available for your broker yet, use Manual import as the fallback path.
Auto sync
Auto sync for Interactive Brokers uses the IBKR Flex Web Service. Once set up, journl. can import historical trades for the selected range and continue pulling new trades automatically going forward. For what the sync gives you once trades are in, see the Interactive Brokers trading journal overview.
Plans: Basic syncs when you press Sync now. Premium and Pro also sync automatically every few hours, so each day's trades arrive soon after IBKR publishes them. The Free plan uses Manual import instead.
In journl., the API Key field should contain your IBKR Flex Token, and the Query ID field should contain your Activity Flex Query ID.
1. Start the connection in journl.
- Open Account center by clicking your profile image and name in the top right corner.
- Open the Trading tab.
- Select Interactive Brokers as your broker.
- Keep this screen open. You will paste your IBKR Flex Token and Activity Flex Query ID here after creating them in IBKR.

2. Generate your Flex Token in IBKR
- Log in to the Interactive Brokers Client Portal.
- Go to Performance & Reports, then open Flex Queries.
- Find Flex Web Service Configuration and open its settings.
- Enable the Flex Web Service if it is not already enabled.
- Choose a long activation period that fits your workflow.
- Click Generate New Token, then save.
- Copy the generated token. This is the value you will paste into the API Key field in journl.
IBKR issues the token through the Flex Web Service configuration page. IBKR also notes that Flex Web Service access depends on a token plus one or more query IDs for the reports you want to fetch.
3. Create your Activity Flex Query ID in IBKR
- Stay on the Flex Queries page.
- Click the + icon next to Activity Flex Query.
- Give the query a clear name, for example journlAutoSync.
- Under Sections, choose Trades.
- Inside Trades, select Executions, then click Select All, then save that section. This includes Account Alias, so your account names from IBKR show up in journl.
- Optional: also choose Cash Transactions and Net Asset Value (NAV) in Base (Select All in each). journl. then shows your deposits, withdrawals and account balance in Cash & Balance.
- For delivery settings, choose CSV and keep column headers enabled.
- If you have multiple accounts, select every account you want to sync. One query can include several accounts.
- Use these date and time settings:
- Date format: yyyyMMdd
- Time format: HHmmss
- Date/Time separator: ; (semicolon)
- Period: Last 365 Days
- Continue, create the query, then reopen it and copy the Activity Flex Query ID.
4. Finish the connection in journl.
- Return to Account center in journl.
- Paste the Flex Token into the API Key field.
- Paste the Activity Flex Query ID into the Query ID field.
- Optionally set an expiration date so journl. can remind you before the token or setup needs attention.
- Click Add. The key appears under Saved API Keys with its last sync time.
- To sync again later, click the sync icon next to the saved key (Sync now).
Common issues to check
- Make sure there is at least one day of trading data available in the IBKR account.
- Make sure the Flex Token was copied correctly.
- Make sure the Activity Flex Query ID was copied from the correct query.
- Make sure the date format is yyyyMMdd.
- Make sure the time format is HHmmss.
- Make sure the date/time separator is a semicolon (;). A query created with other date settings imports trades at the wrong time of day, so edit the query and sync again.
- If the form is greyed out, your plan has no free sync connection. Free has none, Basic and Premium include one, Pro includes as many as you need.
When to use manual import instead
- Your broker connection is not supported yet.
- You only want to import a specific historical range.
- You prefer working from a CSV export.
- You want a one time backfill before relying on sync.
If auto sync is not available for your broker yet, use Manual import as the fallback path.
