This repository is a customized version of the upstream gnzsnz/ib-gateway container, adapted to meet specific requirements for TradingBoat and educational materials.
gnzsnz/ib-gateway is a maintained Docker image that runs the Interactive Brokers Gateway application without human interaction inside a container.
The upstream project can be found on GitHub at gnzsnz/ib-gateway.
This repository allows for the quick launch of TradingBoat using Docker. TradingBoat is a trading platform that receives alert messages via webhooks from TradingView and translates these into orders for Interactive Brokers. TradingBoat utilizes NGROK, Flask (TVWB), Redis, TBOT, and the IB Gateway as depicted in the images below.
Some of the environment variables used for the Docker configuration are inherited from the upstream gnzsnz/ib-gateway image. Additionally, this repository introduces its own environment variables that control other components such as NGROK, Flask, Redis, and TBOT.
Clone the repository:
git clone https://github.com/PlusGenie/openclaw-on-tradingboat
Copy dotenv into the root directory:
cd openclaw-on-tradingboat
cp stable/tbot/dotenv .env
Open the dotenv file using a text editor and update the values of:
TWS_USERID: The account name used to log in to TWS / IB Gateway
TWS_PASSWORD: The password used to log in to TWS / IB Gateway
VNC_SERVER_PASSWORD
NGROK_AUTH: Authentication Token for NGROK as needed.
Once these steps are complete, you can run Tbot on Tradingboat Docker using the following command:
docker-compose up --build
After the docker starts, you can use two interfaces. Firstly, use VNC Viewer to access IB Gateway. Secondly, use the web application to track orders from TradingView to Interactive Brokers.
Please use VNC Viewer to access the IB Gateway via the VNC server.
VNC Server: 127.0.0.1:5900
Note: VNC access is optional and mainly intended for development or maintenance. The gateway runs headless by default.
After running docker-compose successfully, you can access the web application using a browser. The Dockerfile pulls the source of the web application from https://github.com/PlusGenie/tradingview-webhooks-bot .
Then go to http://127.0.0.1:5000 (TVWB web interface).
Here's how to launch TBOT on TradingBoat using Docker in just 5 minutes. Watch the demo on YouTube.
- Deploying TradingBoat Docker on a Public Cloud Computer Using AWS EC2
- TBOT on TradingBoat: Unleash the Power of Automated Trading
- Brief Introduction to Trading Systems: Overcoming Challenges and Unlocking Potential #1
- Brief Introduction to Trading Systems: Overcoming Challenges and Unlocking Potential #2
- Brief Introduction to Trading Systems: Overcoming Challenges and Unlocking Potential #3
- A Quick Demo of Trading Robot
-
Optimizing Execution Time: Improving TradingView to Interactive Brokers Delay with AWS Cloud
-
Decoding TradingView Alerts and Mastering ib_insync: A Comprehensive Guide



