Skip to content

Trader Workstation (TWS) Configuration

OptionsRealTime connects to Interactive Brokers’ Trader Workstation (TWS) through the API. This requires enabling a few settings in TWS.

  1. In TWS Desktop, go to File → Global Configuration
  2. Navigate to API → Settings

Enable the following settings:

TWS API Settings

SettingValue
Enable ActiveX and Socket Clients✅ Checked
Read-Only API✅ Checked
Socket Port7496
Allow connections from localhost only✅ Checked

Enable ActiveX and Socket Clients — Allows external applications to connect.

Read-Only API — Recommended for safety.

API Settings - Top

Socket Port — Use 7496 for TWS Desktop (or 4001 for IB Gateway).

API Settings - Port

Allow connections from localhost only — Restricts connections to your local machine.

API Settings - Localhost

Click OK to save your settings.

With TWS configured, you’re ready to launch OptionsRealTime.

Continue to First Run →