Interactive Brokers gives you more control over the export than any other broker here, which is an advantage once it is set up and a reason people give up on the first attempt. The report you want is an Activity Statement.
Getting the file
Under Reports or Statements in Client Portal. Choose Activity Statement, set a custom date range covering the entire life of the account, and pick CSV rather than PDF or HTML.
Flex Queries, if you are going to do this more than once
IBKR’s Flex Queries let you define exactly which sections and columns a statement contains, save that definition, and re-run it later. If you expect to re-import periodically, setting one up once is worth the twenty minutes. A saved query also means the file has the same shape every time, which is not true of the standard statement when IBKR adjusts its sections.
The thing that makes IBKR files unusual
An IBKR activity statement is really several reports stacked in one file, and they do not share a convention.
The trade rows carry no action word at all — the side is encoded in the sign of the quantity, so a sale is a negative number and nothing else marks it. But the dividend, withholding-tax and cash rows in the same file do carry words: Dividends, Withholding Tax, Deposits & Withdrawals, Broker Interest Received.
So neither rule alone reads the file. Anything importing it has to take the word where there is one and fall back to the quantity sign where there is not. Read with the sign rule alone, your dividends become trades; read with the word rule alone, every sale becomes a purchase of a negative number.
Multi-currency
IBKR accounts frequently hold several currencies at once, and the statement records each trade in the currency it settled in. A portfolio built from it is only coherent once those are converted at the rate on the date of each transaction rather than today’s rate — otherwise past trades silently move as the exchange rate does.
What to check once it is in
- A known position’s share count and average price.
- Dividends for a full past year, and whether withholding tax has been double-counted as a separate cost.
- Anything held in a non-base currency, against the platform’s own figure.
For why deposits must not be counted as gains, see what your real return is when you keep adding money.
HaboFi reads IBKR activity statements as they download, taking the action word where the file gives one and the quantity sign where it does not. CSV or Excel, no broker login and no API key — a file you downloaded yourself, and nothing that keeps reading your account afterwards.
Try HaboFi free