Connect Your Interactive Brokers Trading Journal
Securely sync your IBKR account or upload your Flex Query CSV. TradeBB accurately processes your raw data, handles complex multi-asset logic, and generates your complete performance metrics.

We use imported data only to provide journaling and analytics. Data is encrypted in transit and at rest, with strict access controls. You can disconnect and delete your data anytime.
How to Connect Your Interactive Brokers Trading Journal
Interactive Brokers uses a highly secure system called "Flex Queries" to share data. Setting up your Interactive Brokers trading journal requires a quick, one-time configuration. Once completed, TradeBB will securely parse your complex options and multi-asset trades automatically.
Follow this step-by-step guide to retrieve your Flex Query ID and Flex Token to complete the integration.
Step 1: Access Flex Queries
- Log in to your account on the official Interactive Brokers website.
- In the top navigation bar, click on Performance & Reports.
- Select Flex Queries from the menu.

Step 2: Create a New Trade Query
- On the Flex Queries tab, locate the Active Flex Queries section.
- Click the + (Plus) icon on the right side to create a new query.
- Name your query: Give it a recognizable name (e.g., "TradeBB Journal").
- Under "Select Sections," choose Trades.


Step 3: Configure Trades Data
- A "Trades" configuration window will pop up.
- Select Executions from the options.
- Check the box for Select All to ensure all necessary data points are captured for your trading journal.
- Scroll to the bottom and click Save.

Pro Tip: Make sure to check Select All under Executions. This ensures TradeBB receives the critical commission and fee data needed to calculate your exact Net PnL
Step 4: Delivery Settings & History
- Format: Under "Delivery Configuration," change the format to CSV and ensure "Include Header/Column Names" is checked.
- Time Period: Set the period to Last 365 Days.
- Click Continue.

Step 5: Finalize and Create
- You will be taken to the "Review Your Activity Flex Query" page.
- Review your settings, scroll to the bottom, and click Create.
- You should see a confirmation message: "Create an Activity Flex Query - Complete."
- Click OK.


Step 6: Get Your Query ID
- Return to the Flex Queries tab.
- Find the query name you just created.
- Click the icon (indicated by the red arrow) next to your query.
- Copy the Query ID.

Step 7: Get Your Flex Token
- On the same page, click on Flex Web Service Configuration.
- Follow the prompt to generate/view your token.
- Copy the Current Token(Flex Token). (Remember, this is the long string).

Important Note: Interactive Brokers often delays new Flex Tokens by up to 24 hours. If your Auto-Sync doesn't pull data immediately, don't worry—this is a broker limitation. For instant access to today's trades, use the File Import method below.
Final Step: Connect to TradeBB

How to Import IBKR Trades (File Upload Method)
Need to review today's setups immediately? Uploading a CSV is the fastest way to update your Interactive Brokers trading journal. Configure your export settings once, and generate your report anytime.
Follow this guide to configure your export settings and upload your data to TradeBB.
Step 1: Access Flex Queries
- Log in to the Interactive Brokers website.
- Navigate to Performance & Reports > Flex Queries.
- Locate the Trade Confirmation Flex Query section and click the + (Plus) icon.

Step 2: Configure the Query
- Query Name: Enter a name (e.g., TradeBB-Import).
- Under "Select Sections," click on Trade Confirmation.
- In the popup window, select Executions and check Select All.
- Scroll down and click Save.

Step 3: Set Format
- Format: Ensure CSV is selected.
- Date/Time Format: Match the settings shown in the screenshot (standard format recommended).
- Click Continue.

Step 4: Finalize
- Review your settings on the summary page.
- Scroll to the bottom and click Create.
- Once you see the "Complete" status, click Ok.

Step 5:Exporting Your Data
Whenever you want to update your trading journal:
- Go back to the Flex Queries page in IBKR.
- Locate your saved query (TradeBB-Import).
- Click the Run icon (Arrow) next to the query name.
- The CSV file will automatically download to your computer.

Step 6:Upload to TradeBB
- Upload the CSV file you just downloaded from IBKR.
- Done! TradeBB will instantly analyze your new trade data.

Upload the CSV to TradeBB. Our engine will instantly clean the raw data, and generate your updated equity curve.
InteractiveBrokers FAQ
Can I track multiple accounts in my Interactive Brokers trading journal?
Yes. We automatically map the ClientAccountID from your IBKR data to keep your sub-accounts distinct. You can analyze your entire master portfolio at a glance, or filter down to a single account's performance to isolate your trading edge.
How much historical data can I import from Interactive Brokers?
Due to Interactive Brokers' Flex Query reporting limits, you can import up to the last 365 days of your trade history per report. Within that 1-year window, whether you have 100 recent setups or 10,000 active executions, our system accurately parses all the raw data to build your comprehensive trading journal.
Is my IBKR Flex Token and data connection secure?
Absolutely. Flex Queries only grant strictly Read-Only access. We can never execute trades, modify orders, or access your funds. Your data is encrypted at rest and in transit, giving you complete peace of mind while reviewing your setups.
