Skip to content

PlusGenie/openclaw-on-tradingboat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

198 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This repository is a customized version of the upstream gnzsnz/ib-gateway container, adapted to meet specific requirements for TradingBoat and educational materials.

About gnzsnz/ib-gateway

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.

About this Repository

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.

TradingBoat-Docker

 

How to Run Tbot on TradingBoat Docker

How to Build Docker

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.

How to Access IB Gateway through VNC server

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.

VNC_Viewer

VNC_Viwer_IB

How to Access Web App and Ngrok

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).

WEBAPP_TVWB_TBOT_DECODER

Demo

Here's how to launch TBOT on TradingBoat using Docker in just 5 minutes. Watch the demo on YouTube.

Reference



About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Sponsor this project

  •  

Packages

No packages published