2. Install Interactive Brokers TWS
XeroLite requires Interactive Brokers Trader Workstation (TWS) or IB Gateway to connect to your Interactive Brokers account. This section guides you through downloading, installing, and launching TWS for the first time.
2.1: Download IB Trader Workstation (TWS)
Download Options
You have two options for connecting to Interactive Brokers:
- TWS (Trader Workstation): Download TWS – Full trading platform with charts and tools
- IB Gateway: Download IB Gateway – Lightweight API-only connection
Which Should You Choose?
- TWS: Full trading platform with charts and tools. Use if you need visual interface.
- IB Gateway: Lightweight API-only connection. Recommended for automated trading.
Note: Both applications require an Interactive Brokers account. Open an account if you don't have one.
Version Compatibility
| XeroLite Version | IB Gateway/TWS Compatibility |
|---|---|
| Version v1.1.0 | Optimized for Trader Workstation/IB Gateway v10.30.1 Tested up to v10.37.01 |
| Version v0.3.3 | Optimized for Trader Workstation/IB Gateway v10.30.1 Tested up to v10.33.01 |
Important Notes
- Upgrading beyond v10.33.01 may cause minor issues, especially with major version upgrades.
- XeroLite will continue to provide updates to stay compatible. Please update XeroLite as needed for smooth operation.
2.2: Install TWS
Windows Installation
- Download the TWS installer for Windows
- Run the installer executable
- Follow the installation wizard
- Choose installation directory (default is recommended)
- Complete the installation
Linux Installation
- Download the TWS installer for Linux
- Make the installer executable:
chmod +x tws-latest-linux-x64.sh - Run the installer:
./tws-latest-linux-x64.sh - Follow the installation prompts
- Complete the installation
Mac Installation
- Download the TWS installer for Mac
- Open the downloaded .dmg file
- Drag TWS to Applications folder
- Complete the installation
2.3: Launch TWS for the First Time
Initial Launch Steps
- Launch TWS from your desktop shortcut or applications folder
- Login Screen: Enter your Interactive Brokers username and password
- Select Account Type: Choose between Paper Trading or Live account
- First-Time Setup: Complete any initial setup wizards if prompted
- Verify Connection: Ensure TWS connects successfully to Interactive Brokers
Post-Launch Configuration
After launching TWS for the first time, you'll need to configure API settings for XeroLite. This is covered in the Configure IB TWS for API Access guide.
Next Steps
Once TWS is installed and running, proceed to:
- Install XeroLite – Install and configure XeroLite
- Configure IB TWS for API Access – Configure API settings for XeroLite integration
Need more help? Contact support at [email protected]
See also:
- Before You Start for prerequisites
- Install XeroLite for installation
- Troubleshooting Guide for TWS issues