What is imported
Sure imports the following data from an IBKR Flex report:- Holdings with current prices and quantities
- Cost basis per position
- Trades (with commissions folded into the trade fee), dividends, and cash deposits or withdrawals
Setting up Interactive Brokers
Step 1: Create an Activity Flex Query in IBKR
- In your IBKR Client Portal, navigate to Performance & Reports → Flex Queries.
- Click the + icon in the Activity Flex Query section to create a new query.
- Name the query (for example, “Sure Sync”).
- Enable the following sections and fields:
- Options: None
- Fields: Currency, Ending Cash
- Options: Dividends, Deposits & Withdrawals, Detail
- Fields: Amount, Conid, Currency, FX Rate To Base, Report Date, Transaction ID, Type
- Options: None
- Fields: Currency, Report Date, Total
- Options: Summary
- Fields: Asset Class, Conid, Cost Basis Price, Currency, FX Rate To Base, Mark Price, Quantity, Report Date, Security ID, Security ID Type, Side, Symbol
- Options: Execution
- Fields: Asset Class, Buy/Sell, Conid, Currency, FX Rate To Base, IB Commission, IB Commission Currency, Quantity, Symbol, Trade Date, Trade ID, TradePrice, Transaction ID
- Set the following query configuration options:
- Save the query and note your Query ID.
Step 2: Generate a Flex Web Service token
After saving the query, use the gear icon in the Flex Web Service Configuration section of the Flex Queries page to generate an access token. Copy this token.Step 3: Add the connection in Sure
- Go to Settings → Providers.
- Find the Interactive Brokers section.
- Paste your Query ID and Token into the form fields and save.
- Sure begins syncing and discovering your IBKR accounts.
Step 4: Set up accounts
After the first sync, discovered IBKR accounts appear in the setup queue. Click Set up accounts in the provider panel to select which brokerage accounts to link and confirm the linkage. You can also link a discovered IBKR account to an existing manual investment account if you already have one in Sure.How balances work
Sure anchors your IBKR account balance on the date of the Flex report, not the date of the sync. The NAV (Net Asset Value) comes from the equity summary in your Flex report and is recorded as of that report’s date. Holdings imported alongside it are also written on that same date. If IBKR delivers a statement with a date older than the most recent balance already on record, Sure records that statement as a historical reconciliation entry on its own date and leaves the newer balance in place. This preserves balance history without walking the account’s reported value backwards. A balance write failure is logged to Settings → Debug against the connection so you can identify and diagnose it.How commissions work
When Sure imports a trade from IBKR, it records the commission as the trade’s fee rather than as a separate transaction. The fee flows into the trade’s cost basis and realized gain calculations, and its amount is included in the cash the trade moved. A commission stays as a separate transaction in these cases:- The commission was charged in a different currency than the trade.
- IBKR did not report which currency the commission was in.
Limitations
- Historical activity is limited to the report window of your Flex Query. Sure imports up to 365 days of activity based on the query’s configured period.
- Only investment (brokerage) accounts are supported. Cash accounts and other account types are not imported from IBKR.