For Interactive Brokers clients
Interactive Brokers portfolio tracker for iPhone
Stock Stats reads your IBKR activity with a read-only Flex token and works out how your own money did. Deposits never count as gains, and the timing of each one is taken into account. The statements go from IBKR straight to your iPhone.
Free to download, IBKR sync included. Pro is free for 14 days, no payment details needed.
- Read-only Flex token
- No account or sign-in
- Data stays on your iPhone
- Free automatic sync
Example
Jan 1 to Dec 31, 2025
You put in
$20,000
Value on Dec 31
$21,000
Money made
+$1,000
Your rate / yr
+8.7%
The problem
Your IBKR balance can't tell a deposit from a gain
IBKR Mobile's Portfolio Overview shows daily P&L, net liquidity, market value and realized and unrealized gains, plus charts of historical performance. Net liquidity is the account's total value.
Net liquidity goes up when you send in cash, in the same way it goes up when prices rise. If you add money every month, much of a growing balance can be your own savings. When each deposit arrived matters as well. Here are two investors with the same deposits, the same year-end value and the same $1,000 profit:
| Investor A | Investor B | |
|---|---|---|
| Balance on Jan 1 | $10,000 | $10,000 |
| Deposit of $10,000 | Nov 3 | Feb 3 |
| Value on Dec 31 | $21,000 | $21,000 |
| Balance change | +$11,000 | +$11,000 |
| Money made | +$1,000 | +$1,000 |
| Rate / yr (XIRR) | +8.7% | +5.3% |
Investor A's second $10,000 was invested for two months. Investor B's was invested for eleven. A made the same $1,000 with less money at work, so A's rate is higher. This is a money-weighted return, calculated as XIRR. Stock Stats shows it as Your rate / yr, next to the money you made in your base currency. You can run your own numbers in the XIRR calculator for your portfolio.
IBKR's PortfolioAnalyst can also show a money-weighted return. Stock Stats puts that figure first, as money made and as a rate per year, next to your dividends, your allocation and what an index would have made with the same deposits and withdrawals on the same dates (the index comparison is part of Pro).
How the sync works
Connect IBKR with a read-only Flex token
Interactive Brokers offers the Flex Web Service for one job: generating and returning the Flex Query reports you set up in Client Portal. Stock Stats uses it to fetch your activity.
-
Create an Activity Flex Query
In Client Portal on a computer, add a query with Trades, Cash Transactions and Transfers. Keep Format as XML and set Period to Last 365 Calendar Days. Copy its Query ID.
-
Turn on the Flex Web Service
In Flex Web Service Configuration, tick Flex Web Service Status and save. Copy the token. If it expires in hours, generate a new one that lasts 1 year.
-
Paste both into Stock Stats
Open Settings, then Interactive Brokers. Paste the token and the Query ID, choose the portfolio to sync into if you have more than one, and tap Connect. The first sync brings in your trades, cash and dividends.
The full walkthrough, with every IBKR menu name and the mistakes to avoid, is in the guide How to create an IBKR Flex Query and Flex Web Service token.
Fetches reports, nothing else
A Flex token can't place orders, withdraw cash or change your account. The token is stored in your iPhone's Keychain. It can read every Flex Query on your account, so keep it private.
Straight to your device
Your iPhone requests the statement from IBKR's Flex Web Service and reads it on the device. No aggregator sits in between, and statements never pass through our servers. Price lookups send ticker symbols only, never amounts or an account ID.
Keeps itself current
When you open the app and the last sync is more than 12 hours old, it syncs by itself. Tap Sync Now in Settings → Interactive Brokers, or pull down on the Portfolio screen. Transactions already imported are skipped.
Your earlier years too
The app fetches earlier years by itself, a year at a time, as far back as IBKR keeps Flex data. Details are in the FAQ below.
After the first sync
What you see for your IBKR account
Your numbers are calculated from the trades, deposits, withdrawals and dividends in your IBKR statements, valued at daily prices and exchange rates. Hold shares at Schwab or Fidelity too? Import their CSV into a second portfolio.
Your real profit
- Money made for the last month, this year, the last 12 months or since you started, in your currency and in percent
- Your rate per year (XIRR), which counts when you added or took out cash
- What each holding added or took away, closed positions included
- Money made and return for each calendar year: this year free, earlier years with ★ PRO
Dividends
- Dividends and payments in lieu from your Cash Transactions
- Interest IBKR pays you counts as income. Withholding tax and fees come in as fees.
- Income per year and per month, yield, yield on cost and growth, by holding and over time
More in the dividend tracker for iPhone.
Allocation and goal
- Allocation by holding, by asset class or by invested capital
- Progress toward your target and an estimate of the time to get there
Currencies
- Holdings in different currencies, converted to your base currency with daily exchange rates
- Currency conversions you made at IBKR come in with the sync
vs the market
★ PROYour own deposits and withdrawals, same amounts on the same dates, run through the S&P 500, the Nasdaq 100 or an All-World index. The answer shows how much more or less money you made than the index would have.
Risk in plain words
★ PROYour worst drop, a typical month's swing, how far below your peak you are and how much of your gain is locked in.
Free and Pro
IBKR sync is in the free app
Free covers holdings, transactions, CSV import, Interactive Brokers sync with automatic updates, money made, your rate per year, dividends, allocation, goal planning and up to two portfolios.
Stock Stats Pro adds the market comparison, risk insights, the dividend projection, widgets with your numbers, automatic iCloud backup, Face ID app lock, the 1-day intraday chart, earlier years in Year by year, unlimited portfolios with an all-portfolios view, and a full JSON backup export. Every Pro feature is free for 14 days from the first launch, with no payment details. After that, Pro is a monthly or yearly subscription. The price is shown in the App Store.
FAQ
Questions about the IBKR sync
Can Stock Stats trade or move money in my IBKR account?
No. A Flex token can only fetch the Flex Query reports you set up in Client Portal. It cannot place orders, withdraw cash or change account settings, and Stock Stats never asks for your IBKR username or password. To cut off access, generate a new token in Client Portal: the old one stops working.
Can I add IBKR without a Flex token?
Yes. Run the same Activity Flex Query in Client Portal, download the file and import it in Stock Stats. New activity then has to be imported again by hand. For earlier years, run it again with a custom date range, one year at a time.
I also invest with Schwab or Fidelity. Can I track both?
Yes. Import their CSV files with the Schwab or Fidelity preset, or map any broker's file column by column. Free includes two portfolios. Pro adds unlimited portfolios and an all-portfolios view.
How far back does my history go?
One Flex Query covers at most 365 days, so the app fetches the earlier years itself, a year at a time. It goes back to the start of the account or to 1 January four calendar years ago (2022, if you connect in 2026), whichever is later. To find where a newer account starts, it may need a few extra requests. If IBKR refuses several in one day, the app pauses so the query doesn't get locked, and carries on the next time you open it after the pause.
What does the sync import, and what does it skip?
It imports stock and ETF trades, currency conversions, deposits, withdrawals, dividends, payments in lieu, interest, withholding tax and fees. Options, futures and other asset classes are skipped. Splits and other corporate actions are not in the query's three sections, so the sync never sees them: add splits by hand. Transfers of shares in or out of the account are not imported. The sync result says how many there are, so you can enter them by hand. One connection syncs into one portfolio you choose.
What happens when my Flex token expires?
IBKR lets a token last from 6 hours to 1 year. When yours stops working, the app says so and asks you to reconnect. Generate a new token in Client Portal, paste it in Settings → Interactive Brokers, and the next sync brings in your new activity. Anything already imported is skipped.
See how your IBKR money really did
Install Stock Stats, create one Flex Query, paste the token and Query ID. No account to make and nothing to sign in to.