Error messages

TWS 2104, 2106 and 2158: connection OK messages

Quick answer

Messages 2104, 2106, and 2158 usually report successful connections to IBKR data services. Some apps display them under an error heading even though they are informational. Check for an actual failed request before changing settings.

Educational software guidance. Trading involves risk. Read the financial and information disclaimers.

Step by step

  1. 1 Read the message text next to the code. Look for a connection-OK description.
  2. 2 Open Help → Data Connections to compare farm purpose and status. Then check whether the app has finished connecting and can find the account.
  3. 3 If a quote is missing, check the quote’s own subscription or contract error separately.
  4. 4 Keep informational messages in the log, but avoid treating them as a reason to resend an order.

A practical example

You open an API app and see three lines marked Error, but each line says a data service is OK. Then the account and quotes appear. In that case, the heading used by the app is less useful than the words in each line. Do not restart a healthy link just to remove these notices. Look for a failed request or stale quote before deciding that there is a problem.

Illustrative scenario, not a record of a trade placed during this review.

Screen reference

TWS Market Data Connections with farm purpose and status, plus API client columns
The observed services are connected and the API client list is empty. Use this panel to read current status; it does not reproduce a disconnect or prove an app handshake completed. Captured in TWS paper mode on 3 October 2026. Open the image for full size.
TWS Help menu with Data Connections, Troubleshooting and About commands
Use Help to find connection status, diagnostics and the installed TWS version. Captured in TWS paper mode on 3 October 2026. Open the image for full size.
How to confirm the result If the intended data and account details arrive, these messages alone require no fix.

Mistake to avoid

A healthy data-service connection does not prove that you have paid data permission for every product.

Common questions

Why is an OK message in the error log?

The API sends informational messages through the same message callback used for errors.

Does 2158 mean an order filled?

No. It concerns a security-definition service connection.

Financial and information disclaimers

Financial disclaimer

These guides explain software. They are for education, not financial, investment, tax, or legal advice. No example is a suggestion to buy or sell a product or use a trading strategy. Trading can lose money, including all funds you put at risk. With margin, futures, short sales, or some options, losses can exceed your starting funds. Automation can fail, send duplicate orders, or act late. Stops do not guarantee a fill or a price. Review your orders and positions, and seek advice from a qualified professional for your own needs. Paper trades, examples, and past results do not predict live results or promise a profit.

Information disclaimer

This is general help based on the sources and check date shown on the page. Screens, settings, fees, data access, and product support can change or differ by app version, account, country, and broker. The content may contain errors or become out of date; accuracy, completeness, and continuous service are not guaranteed. Check current broker and app instructions before acting. Screenshots show where controls are; they do not prove that an order test passed. This guide does not replace broker terms or risk notices. References to IBKR and TradingView identify their products and do not imply their endorsement of this guide.

IBKR risk disclosures · IBKR paper-trading limits · SEC guidance on automated investment tools

PickMyTrade help · Independent guidance for Trader Workstation and the desktop integration. TWS images show paper trading. Other applications are named in the image captions. Settings and availability can vary by version and account.

Automate TradingView alerts to Interactive Brokers

See the IBKR integration