Cash Bot
Reads IBKR account measures and publishes a dated snapshot.
Reference guide · Support Bots
How SB-ITM reads IBKR financial data, checks its consistency, and reports account figures without confusing cash, performance, and permission to buy.
An account snapshot, not an entry-decision engine.
Cash Bot reads financial information from Interactive Brokers and brings together useful account measures: USD cash, net account value, realized P&L, and unrealized P&L. Its output is a snapshot of the account at the moment it runs.
Cash Bot is a read-only support component. It does not choose stocks, submit orders, or move funds. Some of its measures are displayed by the Control Center alongside information produced by other components.
Remember: cash shown in the last Cash Bot snapshot is neither a promise of buying power nor permission to enter a position. Entry Bot checks account funds and order conditions again when a purchase is considered.
Reporting, execution and position protection are separate duties.
Reads IBKR account measures and publishes a dated snapshot.
Checks cash and entry conditions when a trade is considered.
Monitors open positions and their broker-confirmed protective orders.
The Morning Decision Chain prepares candidates; Cash Bot does not participate in Scan A or Scan B scoring. The Trade Register tracks transactions, and portfolio-history data is handled by a separate process. These functions complement one another rather than replacing one another.
Inspecting account data without placing orders.
Cash Bot connects to IBKR in read-only mode, obtains the information it needs, writes an execution log, and disconnects. It does not send buy, sell, or fund-transfer instructions.
This keeps its operational scope limited. A failed data request may make an indicator unavailable, but Cash Bot does not repair orders or alter positions. Those functions belong to other SB-ITM components and to the broker.
Snapshot quality depends on the IBKR environment.
Cash Bot needs an operating VPS environment, an available IB Gateway connection, access to the relevant account, and a valid SB-ITM license. The license check takes place before the IBKR connection attempt.
An interrupted session, an unexpected account, missing summary data, or an abnormal broker response can prevent a trustworthy snapshot. Before interpreting any amount, check the account, the active PAPER/LIVE environment, and the timestamp of the last completed snapshot.
Repeated snapshots rather than a continuously refreshed balance.
In the supplied task schedule, Cash Bot starts automatically every five minutes from 9:01 AM New York time, within the configured market-task window. Each run is a separate operation: connect, obtain the snapshot, log the values, and disconnect.
The Control Center may also provide an on-demand launch. Between runs, the real account balance can change after an order, market movement, or account transaction. Treat every displayed value as a timestamped snapshot, not a continuously guaranteed balance.
Cash, funds available and margin-related buying capacity differ.
Cash Bot prefers the USD cash figure reported by IBKR (TotalCashValue). If it is unavailable, the bot may fall back to AvailableFunds. It does not arbitrarily combine multiple currencies to manufacture a USD cash figure.
These IBKR metrics do not represent exactly the same thing: available funds may reflect margin and account-specific rules. Using USD as the account base currency improves consistency, but does not erase that distinction.
Example: the dashboard might show USD 1,200 in the last snapshot, while Entry Bot later refuses a purchase because other orders, safety buffers, or entry controls reduce what can actually be used.
Total portfolio value is not the same as cash.
The portfolio value reported by Cash Bot comes from IBKR's net-liquidation account measure. It provides an overall account view, including open positions and cash under the broker's valuation rules.
An account can therefore have a high portfolio value but very little cash. Equally, holding cash does not establish that the portfolio has made a profit. If IBKR does not return a valid, positive net-liquidation value, Cash Bot ends with an error rather than publishing a misleading portfolio value.
Two figures measuring different things.
Realized P&L is the account-level gain or loss figure returned by IBKR for realized activity. Unrealized P&L refers to gains or losses on positions that remain open, as reported by the broker.
Cash Bot displays both figures, but does not reconstruct the detailed history of each trade or a net return for a user-selected period. Its amounts can therefore differ from closed-trade reports in the Trade Register because of different dates, scopes, and fee treatment.
An N/A is better than a misleadingly precise result.
To calculate unrealized P&L as a percentage of open-position cost, Cash Bot separately requests the account's actual portfolio positions from IBKR. It checks that the values, P&L, USD currency, and estimated acquisition cost are consistent.
The percentage is displayed only after successful reconciliation. If holdings are missing, figures do not match, or the broker does not respond in time, the unrealized P&L amount may still be visible while its percentage is shown as N/A (not available).
An N/A percentage is not a 0% return. It means the validation conditions were not met.
An absent value must not be read as a trusted measurement.
If IBKR returns no account summary, no usable USD cash measure, or no positive net-liquidation value, Cash Bot reports an execution failure. That run must not be treated as a new, complete snapshot.
Under the current code, some missing P&L fields are displayed as zero. If this occurs, do not infer from that number alone that the account had no gains or losses: confirm the actual broker data. The unrealized-return percentage receives stricter checks and remains N/A when reconciliation fails.
Multiple data sources, kept visibly distinct.
Under Performance & Analytics → Trading Dashboard, the Control Center shows portfolio value, available cash, and unrealized P&L sourced from the last valid Cash Bot snapshot. Closed-trade measures, on the other hand, come from the Trade Register.

The dashboard labels the source and scope of its figures. Read the snapshot time and the metric explanations, especially when comparing open positions with closed trades.
An older amount must not masquerade as a current account balance.
For cash and account-value indicators, the Control Center code looks for the last fully completed Cash Bot snapshot dated today in VPS local time. An incomplete log or a prior-day snapshot should not be treated as today's fresh measurement.
An unavailable indicator can therefore mean that no valid recent snapshot exists—not that cash is zero. This prevents partial or outdated results from silently appearing as trusted current data.
An execution trace, not a full accounting ledger.
Each run can write a dated log to the VPS log folder. It records IBKR connectivity, the visible account, the main figures, and completion status. When something fails, the error helps support identify the affected step.
A Cash Bot log is not a ledger of deposits, withdrawals, and trades. Repeated balance values cannot simply be added together to calculate capital changes: a balance measures a state at one time, not a financial flow.
Related account data, different responsibilities.
Cash Bot provides a point-in-time account reading. Portfolio History Bot uses compatible IBKR metric-reading logic to maintain a separate history of account value and P&L. Capital movements and their explanations belong to other tracking functions.
It would therefore be incorrect to claim that Cash Bot itself writes the deposits-and-withdrawals journal or stores the entire evolution of portfolio equity. Historical analysis requires dated records and properly identified capital movements.
Their periods and coverage are not always directly comparable.
The Trade Register records transactions and supports closed-trade measures for a selected period. A Cash Bot snapshot is a current, account-level reading supplied by IBKR.
The broker's account-level realized P&L is not necessarily directly comparable with net realized P&L from only the closed trades included in a report filter. Unrealized P&L covers another population: still-open positions.
Best practice: do not describe “Trade Register realized P&L + Cash Bot unrealized P&L” as a homogeneous total without first reconciling dates, fees, and coverage.
A Cash Bot snapshot does not reserve funds.
Entry Bot queries IBKR to determine cash for the Swing and Intraday workflows. Depending on the active rules, it considers allocations, cash buffers, ongoing buys, open orders, and safety thresholds.
That explains why dashboard cash may be insufficient for a new entry—or may have changed since Cash Bot last ran. Cash Bot does not allocate funds to symbols and cannot override an Entry Bot cash rejection. See the dedicated Entry Bot guide for purchase-side safeguards.
The same VPS can change environment; the funds do not transfer between modes.
SB-ITM lets clients select PAPER or LIVE through the Control Center on the same Managed VPS. Cash Bot's figures must be interpreted against the actual IBKR environment active at the time of its run.
Simulated PAPER balances are not funds available in the LIVE account. Likewise, LIVE cash is not a reserve used to finance simulated PAPER purchases. Verify the environment and visible account before comparing values.
An account movement is not necessarily a trading profit.
Cash can change after purchases, sales, commissions, deposits, withdrawals, and broker adjustments. Net account value can also move with market prices, even with no new order.
A deposit can increase both cash and account value without being a trading gain. A change in unrealized P&L may simply reflect price movement on open positions. Interpreting investment performance therefore requires combining dated account snapshots with identified capital movements.
Practical situations without assuming that every mismatch is a failure.
Entry Bot applies updated checks and limits. The older Cash Bot snapshot is not an authorization.
The broker supplied a P&L figure, but the underlying positions could not be reconciled reliably.
The Control Center has not yet found a complete Cash Bot snapshot for today.
The balance changes, but that movement must not be described as trading performance.
Without a reliable IBKR response, no new complete snapshot is available.
A later retry may work, but broker data still needs verification.
Cash Bot logs connection and read failures and exits unsuccessfully when mandatory data is missing. The task schedule includes subsequent runs; that does not guarantee the next attempt will succeed while an IBKR issue persists.
If portfolio position details are incomplete, the unrealized-return percentage may simply become N/A while the other account figures are still published. Distinguish a failed run, a completed snapshot with a partial indicator, and an outdated snapshot.
Simple checks before requesting help.
On a Managed VPS, support can review relevant logs using the ticket context. Clients are not asked to edit internal scripts or configuration files.
Do not try to repair a financial indicator by editing its source.
Do not edit internal connection parameters, Cash Bot logs, financial figures, or Windows scheduled tasks to make an expected value appear. Do not repeatedly restart IB Gateway or other bots just because an account indicator is temporarily unavailable.
If an entry was rejected, start with Entry Bot's checks: restarting Cash Bot does not create cash or cancel pending orders. For genuine discrepancies, request a coordinated SB-ITM support review.
An account snapshot, not a comprehensive performance statement.
Cash Bot depends on the availability and accuracy of IBKR data. It does not protect positions, guarantee that funds will exist at future order time, or monitor every trade continuously. It is not the broker's official accounting statement.
Net trading performance, fees, closed trades, and capital history must be assessed using the proper underlying records and reports. If an indicator is missing, outdated, or inconsistent, investigate the cause rather than replacing it with an assumed number.
Clarifying the most common misunderstandings.
No. Entry Bot performs its own current cash and safety checks through IBKR.
No. It reflects the last completed and dated snapshot, not every second of the session.
Because the underlying portfolio could not be reconciled sufficiently for a verified percentage.
No. It logs point-in-time snapshots. History and capital movements belong to separate functions.
Not without checking that sources, periods, and fees are comparable.