When to use Flex Query
Use manual Activity Statement XML exports for occasional review. Use Activity Flex Query when you want recurring NAV, holdings, trades, dividends, fees, tax and FX analytics.
Setup checklist
- Create an Activity Flex Query in Client Portal.
- Use XML output and include positions, trades, cash, dividends, withholding tax, fees, FX rates, NAV and corporate actions.
- Save the query and copy its Query ID.
- Enable Flex Web Service and copy the Token.
- Paste the Query ID and Token into IB Dashboard auto sync settings.
Security notes
Treat your Token like a credential. Do not post it in chat, screenshots or public repositories. Rotate it if you suspect exposure.
IBKR Flex QueryFlex Web Service TokenIBKR Query IDInteractive Brokers auto sync