How to Config TWS Gateway for IBridgePy
Learning to config TWS Gateway correctly is essential for successful algorithmic trading with IBridgePy. This guide will walk you through how to config TWS Gateway for Interactive Brokers trading platforms, enabling Python trading connections.

Step 1: Download and install Interactive Broker’s TWS or IB Gateway
Go to this webpage to download IB’s TraderWorkstation (TWS) or go to this webpage to download IB Gateway.
Both TWS and Gateway can be used to trade. If you are relatively new to trade at IB, then I would recommend TWS as it is more user friendly. However, if you want to save time and avoid IB system restarts then go for the Gateway.
Step 2: Configure API Settings
After installation, you need to enable API connections in TWS or Gateway settings. This allows IBridgePy to communicate with Interactive Brokers.
For detailed configuration steps, visit our tutorials section or check our documentation.
