How do I import from Interactive Brokers?
Connect IBKR in Settings → Connections with a Flex Web Service token and a Trade Confirmation Query ID, or import a Flex Query or Activity Statement file.

Connect with Flex
- In IBKR Client Portal, open Performance & Reports → Flex Queries.
- Open Flex Web Service Configuration, enable Flex Web Service Status and Save. Copy the Current Token.
- Create a Trade Confirmation query. In Options, select Symbol Summary, Order and Execution, use Select All fields, format XML. Note its Query ID.
- In TSB, open Settings → Connections → Add a source → IBKR. Paste the token into Flex Token and the Query ID into Trade Confirmation Query ID, then Test & Connect.
- In Connection settings, choose the Journal account and History to include (up to 364 days), then Activate sync.
Optional, for same-day FX fees: create an Activity Statement query (Trades → Execution → Select All fields) and paste its ID into Activity Query ID (optional). IBKR updates it after the daily close.
Flex tokens expire. When the connection shows Review and says the token is expired or invalid, make a new token in Flex Web Service Configuration and use Reconnect in Connection settings. A Paper Trading account can’t use Flex Web Service: import a file instead.
From a file
Export your trades as CSV from a Flex Query or the Activity Statement and drop the file into the import window (Add trade’s arrow → Import a file). A file with only Symbol, DateTime, Quantity, Price and Commission columns names no broker: TSB asks Is this an Interactive Brokers export? Choose Read it as IBKR.
How often it syncs
Pro and Max check every hour; Free once a day. IBKR builds each Flex report on request and limits how often a token can ask, so Waiting for a while is normal. Older trades come from the first window or from files. Imported IBKR files for this account before? Choose New closed trades from activation onward under History to include.
Still stuck? Email support@traderssecondbrain.com with your account email and what you see. We reply within 1 business day.