Exclusive 22% OFF All Quantra by QuantInsti Courses for IBridgePy Users Master algorithmic trading from beginner to advanced — Python for trading, machine learning strategies, options trading, and more.
HUI22 Use HUI22 for 22% off
HUI7 Stack HUI7 for an additional 7% off
Browse Courses →
← Back to Blog

Config TWS or Gateway

December 17, 2020

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.

config TWS Gateway

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.