Reference guide · Core Bots

Historical Data Warm-Up: Checking IBKR Data Before the Scans

Understand the first Morning Decision Chain check: why SB-ITM tests an IBKR historical-data request before Scan A and Scan B, what that test confirms, and what it does not.

Stage 1 of 9IBKR historical-data checkNo trading orders
01

Why this stage exists

A historical-data availability check before the morning analyses.

To analyze markets, SB-ITM needs historical information provided through Interactive Brokers (IBKR). However, a successful connection to IB Gateway does not necessarily mean that the service responding to historical-data requests is ready. Historical Data Warm-Up is designed to identify that situation before the remaining morning analyses begin.

Think of it as a connection test before a large transfer: SB-ITM confirms that a small, genuine request returns usable data. This avoids immediately running the wider preparation workflow against a service that may still be temporarily unavailable.

!

Key point: this bot performs a preliminary check. It is not a stock scanner, a performance indicator, or a trade-entry engine.

02

What the bot actually checks

A real historical request, not just a network connectivity test.

The bot connects to IB Gateway, identifies SPY—a widely traded ETF tracking the S&P 500—and requests recent historical trade data in five-minute bars during regular US market hours.

The check succeeds when the IBKR API returns at least one historical bar. That confirms this type of historical request received a response. The bot then disconnects from IBKR.

01

API connection

Establish a technical session with IB Gateway.

02

SPY request

Send an actual historical-data request to IBKR.

03

Data received

Confirm that the response contains usable data.

!

Important limitation: this does not guarantee that every symbol in the Watchlist, every historical timeframe, or every market-data service will be available later.

03

How the check works

A defined sequence with automatic retries.

The check runs automatically on the Managed VPS. Clients do not need to enter anything. The bot first performs its required startup checks, then sends its request to IBKR.

  1. Initial checks. Confirm the operating prerequisites and load the required configuration.
  2. Connect to IB Gateway. Open an API session for the check; this does not involve order execution.
  3. Request SPY history. Ask for historical data and confirm that the response is not empty.
  4. Handle a temporary failure. If connection or data retrieval fails, retry automatically with a pause between attempts.
  5. Finish the check. On success, disconnect and allow the chain to continue. If all attempts fail, report a failure.

Why does the bot retry?

IBKR historical-data services can take a little longer to become responsive after components start. Automatic retries help with temporary delays; they do not repair IBKR infrastructure.

04

Where it fits in the morning

The first of nine stages in the Morning Decision Chain.

Historical Data Warm-Up is currently the first stage of the Morning Decision Chain. It runs in SWING, INTRADAY, and BOTH modes.

After a successful check, the chain uses a short transition pause before starting Regime Bot. It then runs Scan Data, Scan A, and Scan B, followed by the stages required for the selected trading mode. This ordering separates the initial availability check from data collection and stock analysis.

1

Historical Data Warm-Up

Checks whether a reference historical-data request receives an IBKR response.

2

Regime Bot

Identifies the market context used by subsequent analysis.

3

Scan Data

Collects and prepares the market datasets used by the scanners.

!

If the check fails: the Morning Decision Chain normally stops at this stage. Later stages must not be treated as successfully completed for that run.

The morning chain does not submit trading orders. New entries are processed later by Entry Bot, subject to its own rules and checks.

05

Three different responsibilities

Checking availability, collecting data, and analyzing stocks are separate tasks.

ComponentActual responsibilityWhat it does not do
Historical Data Warm-UpTest the IBKR historical-data service with a reference request.Does not download history for the entire Watchlist.
Scan DataCollect and prepare datasets later used by the analyses.Does not independently choose stocks to buy.
Scan A / Scan BEvaluate symbols using their own rules and methods.Do not directly submit trading orders.

A successful Warm-Up does not mean that any particular stock will be selected by a scanner. Even when all relevant data is available, a scanner may reject a stock because of market conditions or its own criteria.

06

Understanding the results

Technical success does not predict trading outcomes.

✓

COMPLETED

The check completed without an error reported to the chain, after a non-empty historical-data response.

…

STARTED / Running

The request is underway or another attempt may be in progress. Wait for its final result.

!

FAILED

The request did not succeed, or an initial operating requirement prevented completion.

The dedicated log can provide useful detail: a connection issue, an empty response, a request error, or retry attempts. These diagnostics are not buy signals or market forecasts.

!

Check the date: a COMPLETED status from a previous run does not establish historical-data availability for today’s session.

07

Examples of issues

Possible explanations without jumping to conclusions.

Several different problems can produce a failure. The exact message and IB Gateway status must be reviewed before drawing conclusions.

A

IB Gateway is unavailable

The bot cannot establish the necessary technical connection. It cannot report a successful check.

B

Connected, but no bars returned

The API session is established, but the reference historical request returns no usable bars. The IBKR historical-data service may be temporarily unresponsive.

C

Request rejected or timed out

The API does not deliver a usable result under the expected conditions. Support can use the log to narrow down the cause.

D

Startup prerequisite blocks execution

A required configuration value or authorization check prevents the test from running. This does not automatically mean IBKR historical data is down.

!

Do not do this: do not alter connection parameters, bot files, or Windows scheduled tasks to force a FAILED status to disappear.

08

Tracking it in Control Center

Review the status and timestamp in the context of the entire workflow.

Under Control Center → Core Bots → Morning Decision Chain, Historical Data Warm-Up appears at the top of the workflow. Check the stage status and the overall chain status: Warm-Up can succeed even if a later stage fails.

Actual Control Center screenshot showing Historical Data Warm-Up as the first Morning Decision Chain stage
Example Control Center screen. The captured statuses do not necessarily represent your VPS’s latest run.

If an issue persists, record the date, time, stage name, and error message. Those details are more useful than simply saying that a scan is not working.

09

Practical guidance for clients

The normal operation requires no manual VPS changes.

On an SB-ITM Managed VPS, Historical Data Warm-Up is part of the normal ecosystem workflow. Clients do not need to install a module, run a script, or edit a file to warm up the data service.

  1. Check the run date. Distinguish today’s outcome from a status left over from an earlier session.
  2. Allow automatic attempts to finish. A temporary delay does not necessarily mean an ongoing outage.
  3. Review the Morning Decision Chain statuses. If Warm-Up fails, do not assume subsequent scans ran successfully.
  4. Avoid uncoordinated restarts. Do not manually force multiple data-collection or scan components to run in parallel.
  5. Contact SB-ITM Support. Open a ticket in the Web Portal. If asked, generate the Support ZIP in Control Center; support can access it without a manual ticket attachment.

SB-ITM support

For repeated failures, open a ticket under Web Portal → Support to request assistance.

10

Frequently asked questions

Clarifying the most common misconceptions.

?

Does the bot analyze all 1,080 stocks?

No. It sends a reference historical-data request for SPY. Collecting data for the scans is a separate Scan Data stage.

?

Does COMPLETED guarantee that every scan will work?

No. Every stage performs its own work and checks. A responsive historical-data endpoint does not guarantee all subsequent downloads or analyses.

?

Do I need a separate run for PAPER and LIVE?

Warm-Up is part of the Morning Decision Chain on the VPS in its currently configured environment. No second VPS or separate manual operation is required.

?

Does the bot buy SPY?

No. SPY is only a reference instrument for a data request; the bot submits no order.

?

Does a failure mean the stock exchange is closed?

No. A historical-data failure alone is not evidence of a market closure or market-wide incident.