Debugging the connection between TBOT and TWS/IB Gateway

Problem

I am experiencing difficulties with establishing a connection between 127.0.0.1:5000 and the IB Gateway while running the external IB-Gateway with Docker TBOT. Although everything seems to be running, there are no updates on the ORDER webpage.

Solution

From a high-level perspective, it's important to ensure that you've followed the guidelines outlined in the book - "How to Set Up Tbot on TradingBoat Docker with an External TWS Workstation.pdf". If the problem persists and you're unsure of the cause, I recommend consulting the chapter, "Managing TradingBoat Components with DotEnv and tbottmux: A Comprehensive Guide" in the book.

To diagnose the issue further, you should access the Tmux TBOT session terminal as demonstrated in the provided screen. Should there be any connection errors, they will typically be displayed in the terminal.

https://img-c.udemycdn.com/redactor/raw/q_and_a/2023-11-15_20-30-38-c2d000831bf814ad9806854e338f8963.png

Moreover, the .env file contains a variable named TBOT_LOGFILE. By default, this environment variable points to /tmp/tbot_log.txt, where you can also check for any error messages that might shed light on the connection issue.

Further details and procedures, I highly recommend referring to the comprehensive Udemy course available here: Link to Udemy Course.

Subscribe to TBOT on TradingBoat

Don’t miss out on the latest issues. Sign up now to get access to the library of members-only issues.
jamie@example.com
Subscribe