Skip to main content
Press ⌘K to search

Interactive Brokers

Connect Interactive Brokers once and an Equibles portfolio mirrors the stocks and ETFs in your account, refreshed every day. It reads a Flex report, which cannot place orders, and never asks for your IBKR password.

Before you start

  • An Interactive Brokers account you can open in the IBKR Portal.
  • A portfolio on Equibles that you created. Broker sync is on every plan, Free included.

Create the report and token at Interactive Brokers

  1. In the IBKR Portal, open Performance & Reports, then Flex Queries.
  2. Create an Activity Flex Query with the Open Positions section at the Summary level, with all its fields.
  3. Choose XML and the Last Business Day period, and save. The list shows the query's ID.
  4. On the same page, open Flex Web Service Configuration, turn the service on and generate a token.

Connect it on Equibles

  1. Open Portfolios and pick the portfolio.
  2. Click ⋮, then Sync from broker.
  3. Choose Interactive Brokers, paste the token into Flex token and the query's ID into Flex query ID, and click Connect.

The first sync runs within a minute. After that the portfolio refreshes about once a day, and Sync now in the same dialog asks for a fresh read.

What syncs

  • Synced: stocks and ETFs, each matched by its ISIN.
  • Listed, not synced: options, futures, bonds, crypto and cash.
  • A report that ends more than 7 days ago is refused, because it would show old holdings. Keep the query's period on Last Business Day.
  • When you sell a holding, its lot closes at the last price Interactive Brokers reported for it.

How synced holdings behave in your portfolio is covered in Sync from a broker.

If something goes wrong

Message What to do
The Flex token has expired. Generate a new token in Flex Web Service Configuration and connect again.
Interactive Brokers does not recognise that Flex query ID. Check the query's number in Flex Queries and connect again.
That is a legacy Flex query. Create an Activity Flex Query with Open Positions and connect again.
Interactive Brokers refused the Flex token. Check it in Flex Web Service Configuration, or generate a new one, and connect again.
The Flex report held no statement. Check that the query covers your account.
Interactive Brokers asked us to slow down. The next sync will try again. Nothing to do; the next sync retries.

Connect your AI in a minute

A free account connects ChatGPT, Claude or any MCP client to live data, and includes an API key for your own code.