DIVIDENDFLOW
FOR INTERACTIVE BROKERS
HOW IT WORKSGUIDES
COMING SOON
INTERACTIVE BROKERS DIVIDEND GUIDE

How to Create an IBKR Flex Query for Dividends

PRIMARY KEYWORD · IBKR FLEX QUERY DIVIDENDS

IBKR Flex Queries are customizable reports that export account data in a structured format. They are useful for dividend tracking because they can include dividend payments, cash transactions, taxes, currencies, and account activity.

DividendFlow uses IBKR Flex Query data to import dividend information and show it in a clean mobile interface.

Set Up DividendFlow
GUIDE
Beginner-friendly IBKR dividend reporting guidance for investors who want cleaner dividend records.

What Is an IBKR Flex Query?

A Flex Query is a customizable Interactive Brokers report. You can choose activity sections and fields, export the data in structured formats, and access it with a query ID and token for automation or portfolio tools.

Flex Query vs Standard Dividend Report

Standard reports are easier to read manually. Flex Queries are more useful when you want repeatable exports for spreadsheets, tax tools, or apps like DividendFlow.

FEATURESTANDARD DIVIDEND REPORTFLEX QUERY
Easy to read manuallyYesLess so
Customizable fieldsLimitedYes
Better for automationNoYes
Can include cash transactionsLimitedYes
Useful for apps/toolsLimitedYes
Already using IBKR Flex Queries?
DividendFlow turns your dividend data into a clean income dashboard, withholding tax overview, and dividend forecast.
Set Up DividendFlow

Step-by-Step: Create a Flex Query for Dividends

  1. Log in to Interactive Brokers Client Portal.
  2. Open Reports.
  3. Go to Flex Queries.
  4. Create a new Activity Flex Query.
  5. Select the relevant dividend and cash transaction sections.
  6. Add the recommended fields.
  7. Save the query.
  8. Copy the Query ID.
  9. Generate or copy the Flex Web Service token if needed.
  10. Use the Query ID and token with your dividend tracking workflow or DividendFlow.
SCREENSHOT PLACEHOLDER
Flex Query creation start screen
ALT TEXT · Interactive Brokers Flex Query creation start screen
Add a manually captured screenshot here. Blur account numbers, balances, personal details, email addresses, and tokens.
SCREENSHOT PLACEHOLDER
Saved Flex Query showing Query ID
ALT TEXT · Interactive Brokers saved Flex Query with Query ID
Add a manually captured screenshot here. Blur account numbers, balances, personal details, email addresses, and tokens.
SCREENSHOT PLACEHOLDER
Flex Web Service token screen with token redacted
ALT TEXT · Interactive Brokers Flex Query token screen with token redacted
Add a manually captured screenshot here. Blur account numbers, balances, personal details, email addresses, and tokens.

Important Security Note About Flex Tokens

Flex tokens can allow access to report data. Treat them like sensitive credentials, never publish or share them, and revoke or regenerate tokens if exposed. DividendFlow is designed around privacy and local processing, so users can track IBKR dividends without handing their full brokerage login to a third-party server.

Common Flex Query Mistakes

  • Including only Dividends but not Cash Transactions.
  • Missing withholding tax rows.
  • Missing currency fields.
  • Confusing dividend accruals with paid dividends.
  • Not selecting a long enough reporting period.
  • Using the wrong account.
  • Forgetting token access can expire or be revoked.
  • Copying the wrong Query ID.

How DividendFlow Uses Flex Queries

You create an IBKR Flex Query, connect it to DividendFlow, and the app imports dividend-related data. DividendFlow organizes dividends by ticker, date, month, and year, shows taxes withheld and net income, and helps forecast future dividends.

Track IBKR dividends automatically with DividendFlow
DividendFlow helps Interactive Brokers investors track paid dividends, withholding tax, net dividend income, and future dividend forecasts from IBKR Flex Query data.
Try DividendFlow

FAQ

Which IBKR Flex Query sections do I need for dividends?
Start with Dividends, Cash Transactions, and Withholding Tax where available. Depending on your setup, dividend accruals and account information may also be useful.
Why include Cash Transactions in a dividend Flex Query?
Because paid dividends and withholding tax may appear as cash movements, not just as a simple dividend table.
Is an IBKR Flex Query token safe?
A Flex token should be treated as sensitive. Do not share it publicly and revoke or regenerate it if exposed.
Can DividendFlow use my IBKR Flex Query?
Yes. DividendFlow is designed to import IBKR dividend data through Flex Queries and present it in a cleaner mobile interface.
RELATED GUIDES
DIVIDENDFLOW
A dividend tracker for Interactive Brokers customers.
Not affiliated with or endorsed by Interactive Brokers.
PRODUCT
LEGAL
© 2026 DIVIDENDFLOWBUILT FOR IBKR