Collect
Read stock fills for the configured IBKR account after the tracking activation time.
Reference guide · Support Bots
Understand what the Trade Register actually records, how the execution history becomes a trade journal, and where its performance figures and historical limits must be interpreted with care.
A dedicated record of trades — not an order-execution engine.
Trade Register Bot is the SB-ITM component that records stock executions reported by Interactive Brokers and organizes them into an operational trading history.
It connects in read-only mode. It does not buy, sell, cancel, replace or protect orders. Entry Bot and Risk Bot retain their separate roles.
Important: the Trade Register is an internal operating record. It complements, but does not replace, the broker’s official executions, activity statements or tax documentation.
From actual broker fills to a readable trading journal.
Read stock fills for the configured IBKR account after the tracking activation time.
Deduplicate by execution identity and distinguish pre-existing holdings from newly tracked trades.
Associate exact buy and sell executions, update open quantity and calculate closed-trade results.
Preserve durable CSV records and regenerate the validated Excel presentation.
All steps depend on the data actually delivered by IBKR and on the bot being able to access its existing persisted records.
Partial fills are preserved individually.
If an order executes in several fills, each broker execution is retained separately with its own exact quantity, exact execution price and execution timestamp. Buying 100 shares through several partial fills does not become one fictional execution at an average price.
Each execution carries broker identifiers and, as available, the security identity, direction, fees, execution time and other contract metadata. Duplicate execution IDs are not treated as new trades.
A trading order, an execution (fill), a position and a completed trade are not interchangeable concepts. The Register distinguishes these levels.
The journal does not replace fills with average entry or exit prices.
The source code imposes a strict rule: every displayed entry and exit price comes from a real IBKR execution. If several executions belong to a trade, their prices are retained as separate values.
Entry and exit values may be summed to compute a financial result. That aggregation must not be confused with a displayed average execution price.
The status follows the recorded entry and exit quantities.
The Register groups related fills into individual trades. A trade is OPEN when an entered quantity remains outstanding and CLOSED when the recorded exits fully offset the recorded entries.
Partial disposals can reduce the remaining quantity without turning the full trade into CLOSED. Each row also includes opening and closing times, duration and strategy context where it can be established.
Realized figures are associated with fully closed tracked trades.
For a closed tracked trade, gross P&L is derived from the sum of exit execution values minus the sum of entry execution values. Net P&L also deducts the recorded broker fees and any configured country taxes.
The percentage is based on the entry value. For an OPEN trade, the trade record does not invent a finalized P&L: realized result fields remain unavailable until closing.
Commissions may be updated when IBKR supplies a later commission report. Figures can therefore be revised. This journal is not a real-time mark-to-market of open positions.
Pre-activation positions are isolated from new official tracking.
At first activation, the bot identifies holdings already open. It classifies them as LEGACY and excludes their subsequent executions from the newly tracked official results until the position has been flattened.
This avoids inventing a missing opening price or incorrectly presenting an old position as a newly opened trade. Separately validated historical trade imports may exist, but the bot does not automatically reconstruct all past transactions from a newly connected account.
The current source tracks stocks, not every IBKR asset class.
The reviewed implementation records executions of instruments reported as stocks (STK) for the configured account. Non-stock executions, such as some currency conversions, are excluded from official tracked trades.
Executions predating the activation timestamp and unmatched sell executions are also excluded from new official trades. Their handling is deliberate, not necessarily a broker error.
Additional annotations are useful only when evidence is available.
When available, the Register can enrich a trade with company information, sector and scan-related context. It can also associate a recognized exit with Risk Bot trailing-level information or an emergency-close record.
These annotations depend on matching archived inputs and logs; some may remain blank or unknown. Their absence does not invalidate an IBKR fill, and a label must not be treated as definitive proof of which order caused an execution.
Swing, Intraday and Emergency labels follow recorded evidence.
The Excel dashboard groups closed trades using detected exit markers: L1–L4 for Swing, INT. for Intraday and EME. for recognized Emergency exits. Unclassified records remain in an unknown/other group.
In the underlying code, an Emergency designation requires a match to durable broker execution information; it is not assigned simply because a trade closed at a loss.
Persistent data first; Excel is a generated viewing layer.
A durable CSV preserves the individual IBKR executions with exact prices, quantities and identifiers.
A separate CSV groups executions into OPEN/CLOSED trades and carries any available financial and contextual attributes.
Dedicated state and history files maintain the activation boundary, historical exclusions and deduplication information.
A regenerated XLSX provides the human-readable trade table and performance dashboard.
Do not edit, delete, merge or replace the durable source files manually. Ask SB-ITM Support before restoring or importing history.
A presentation layer with a trade table and a realized-performance dashboard.
The workbook contains a Trade Register worksheet with structured headers and filters, plus a Dashboard worksheet for reviewing the recorded trading activity.
The Dashboard includes realized net P&L, numbers of closed and open trades, win rate, performance by detected exit category, and historical realized-result charts. It does not provide live unrealized market valuation for open positions.
The bot validates the generated XLSX package before replacing the previous workbook. If Excel has the file open and prevents replacement, close the workbook and follow the normal support or recovery procedure.
The collector operates while the bot is running and IBKR is reachable.
The bot periodically polls broker execution data, processes any new fills and persists its register. It also refreshes the Excel workbook at a separate configured frequency and when new or amended fills are processed.
If a collection cycle fails, the implementation attempts a later reconnection. This does not guarantee that an unavailable IBKR session or an interrupted bot will update itself immediately.
Always interpret a register within its own account context.
Each register is associated with an IBKR account identifier and the account data available through its connected Gateway. PAPER and LIVE histories must not be mixed when reviewing results.
The presence of a workbook or a file on a VPS does not establish that the bot is currently connected or that the most recent fills have already been received.
Three different views of trading operations.
What filled, when, at what exact price, and what fully closed trades realized.
Account cash and portfolio indicators from IBKR account information.
A dated observation of current positions, available quotes and visible orders.
These components complement one another. None of their locally generated reports replaces an official IBKR statement.
Verify records without rewriting their source.
Common points when reading the Trade Register.
No. Its IBKR connection is read-only and its purpose is recordkeeping.
Not automatically. Pre-activation positions are isolated as legacy. Any historical import requires validated data and a controlled process.
Because one order may have several fills. The journal retains each exact broker execution price rather than displaying a synthetic average.
The Register calculates realized results for fully closed tracked trades. Open positions are not valued through live mark-to-market in this workbook.
IBKR commission data may be updated after the original execution and the bot can refresh the existing record.