How it works
The system pulls data from your account through the official Interactive Brokers Flex Web Service. It is a read-only mechanism: the app receives ready-made reports (trade executions, account movements, open positions) but cannot trade or change anything on your account.
You need to do two things once in your IBKR portal: obtain an access token and create three Flex queries (report templates). After that, paste the token and query IDs into the app — and synchronization starts automatically.
What you will need
- An active Interactive Brokers account with Client Portal access.
- Access to Settings → Account Settings (for Flex Web Service).
- An InteractiveBrokers Admin account (email + password).
- 10–15 minutes for the initial setup.
Enable Flex Web Service and get a token
Log in to the Interactive Brokers Client Portal. Open the settings menu and find Flex Web Service.
- Go to Settings (gear icon) → Account Settings.
- Under Reporting, find Flex Web Service and open it.
- Switch the status to Enabled.
- Set the token lifetime (max — 1 year is recommended) and confirm.
- Copy the generated Current Token — a long numeric string. This is your access key.
Create three Flex queries
A Flex query is a report template: you choose which data to export and how. The app needs three separate queries. All are created under Settings → Account Settings → Flex Queries → Activity Flex Query.
For each query set the format: Format — XML, Period — Custom (the app supplies the date range). Below are the sections and fields to include in each of the three queries.
Query 1. Trades
All stock and option executions. Section: Trades → Executions.
Query 2. Cash Transactions
Deposits, withdrawals, dividends, interest and withholding. Section: Cash Transactions.
Query 3. Open Positions
A current end-of-day snapshot of the portfolio. Section: Open Positions → Summary.
Enter the token and Query IDs in the app
Log in to InteractiveBrokers Admin and open the integration settings. Fill in the fields:
- Flex Token — the token from step 1.
- Query ID (Trades) — the ID of query 1.
- Query ID (Cash Transactions) — the ID of query 2.
- Query ID (Open Positions) — the ID of query 3.
Save. The app verifies the connection by making a test request to the Flex service.
Backfill history and enable auto sync
On first connection, run the history backfill from your account opening date. The system splits the period into chunks and downloads all data sequentially.
After the initial load, synchronization happens automatically on a schedule — several times per trading day. Nothing needs to be triggered manually.
Limits & frequently asked questions
Why can’t I export the entire history in one request?
What does the “Statement is not available” error mean?
The “Too many requests” (1018) error?
Can I edit trades manually?
Is it secure?
Ready to connect your account?
Create an account and follow the guide — the initial setup takes about 15 minutes.