OptionsApp

Video 2: Setting Up OptionsApp & TWS

Updated: October 8, 20261 min read

The starting point is a freshly installed TWS and OptionsApp. In TWS, go to Global Configuration, API, Settings, turn on Enable ActiveX and Socket Clients, turn off Read-Only API and take note of the Socket Port (paper account 7497, live account 7496). Under API, Precautions, the three options Bypass Order Precautions for API Orders, Bypass Redirect Order warning for Stock API Orders and Bypass No Overfill Protection precaution are required; otherwise TWS holds orders for confirmation. Under Lock and Exit, select Auto restart instead of Auto logoff. Then restart TWS completely once; only then do the settings take effect.

In OptionsApp, enter the same port as in TWS in the Settings, select the time zone and save. After Connect, the connection status turns green, and with a paper account the PAPER ACCOUNT bar appears at the top. Finally, the video shows the approvals: they are granted in the user portal and loaded into the app with Refresh approvals.

TWS API SettingsApprovals in the User Portal

Was this article helpful?