IB Gateway setup¶
Under construction
What this page will cover¶
- Downloading IB Gateway from Interactive Brokers
- Logging in (paper vs. live credentials)
- Enabling the API in Gateway settings
- Setting the right port (4002 for paper, 4001 for live)
- Trusted IPs /
127.0.0.1 - Read-only API setting (must be off for trading)
- Auto-restart configuration so Gateway stays up overnight
- Common pitfalls and how to verify the connection from WSTerminal
- Running a secondary IBKR username so Gateway doesn't conflict with TWS sessions