How to Set Up Flex Reports in IBKR for Wheelytics
Why do I need two Flex Reports?
Wheelytics uses two separate Flex Reports to import your options trade data from Interactive Brokers (IBKR):
-
Activity Flex Query – used both for initial historical import and for daily background syncs. This query helps capture trades that may appear in the report outside of market hours (e.g., on weekends or after expiration events). You can set any date range, but the report must include all required trade fields for proper processing. We recommend selecting “Last 365 Calendar Days” for the broadest coverage.
-
Trade Confirmation Flex Query – used for importing real-time trade updates during market hours. It runs automatically once per hour while markets are open.
Using both reports ensures complete, reliable, and continuous tracking of your options trades — including delayed or off-hours activity.
1. Create Activity Flex Query (Historical Report)
- Log in to your Interactive Brokers account
- Navigate to Performance & Reports → Flex Queries → Create New Activity Flex Query
- Name the query:
Wheelytics Activity Report
- Under Sections, choose:
Trades
- Make sure Execution is checked
- Under Field Selection, click
Select All
or manually include the following required fields:
Account Id
Trade ID
Symbol
Underlying Symbol
Description
Strike
Expiry
Quantity
Trade Price
Proceeds
Net Cash
Trade Date
Buy/Sell
Put/Call
Ib Commission
Open Close Indicator
Date/Time
- Under Period, select the range you wish to import — we recommend “Last 365 Calendar Days” for full coverage, but shorter or custom periods are also supported.
- In the Flex Web Service Configuration, enable: Flex Web Service Status
- Leave all other settings as default and click Continue, then Create.
This report will be used for both initial import and daily background syncs to capture delayed trades outside regular market hours.
2. Create Daily Flex Report (Trade Confirmation Flex Query)
- Go to Performance & Reports → Flex Queries → Create New Trade Confirmation Flex Query
- Name the query:
Wheelytics Daily Trade Confirmations
- Select the following fields:
Account Id
Trade ID
Symbol
Underlying Symbol
Description
Strike
Expiry
Quantity
Price
Proceeds
Net Cash
Trade Date
Buy/Sell
Put/Call
Commission
Date/Time
- The Period is automatically set to: Today
- In Flex Web Service Configuration, enable: Flex Web Service Status
- Leave all other settings as default and click Continue, then Create.
This report is used for hourly syncs during market hours to keep your dashboard up to date in near real time.
What are the required fields?
Below is the full list of required fields for Wheelytics to process your trades correctly:
Field | Description |
---|---|
Account Id | IBKR account identifier |
Trade ID | Unique trade identifier |
Symbol | Option or stock symbol |
Underlying Symbol | Underlying asset symbol |
Description | Human-readable description |
Strike | Option strike price |
Expiry | Expiration date of the option |
Quantity | Number of contracts |
Trade Price / Price | Execution price per contract (depends on report type) |
Proceeds | Total trade value before commissions |
Net Cash | Proceeds minus commissions |
Trade Date | Date of the trade |
Buy/Sell | BUY or SELL indicator |
Put/Call | Type of option (PUT or CALL) |
Ib Commission / Commission | IBKR commission for the trade |
Open Close Indicator | Indicates if the trade opened or closed a position |
Date/Time | Full timestamp of the trade |
Where do I enter the Query ID and Token?
Go to the IBKR page in your Wheelytics account:
- Current Token – your current token from IBKR
- Activity Flex Query ID – used for historical import and daily background sync
- Trade Confirmation Flex Query ID – used for real-time updates during market hours