Giter Site home page Giter Site logo

bondjames12 / ib-gateway-docker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from plusgenie/ib-gateway-docker

1.0 0.0 0.0 179 KB

Converting TradingView PineScript Alerts into Interactive Brokers Orders

Home Page: https://tbot.plusgenie.com

License: MIT License

Shell 39.26% Dockerfile 60.74%

ib-gateway-docker's Introduction

Introduction

This repository is a customized version of Interactive Brokers Gateway Docker , forked to meet specific requirements for educational materials.

About Interactive Brokers Gateway Docker

Interactive Brokers Gateway Docker is a docker image that enables the running of the Interactive Brokers Gateway Application without any human interaction on a docker container.

The original project can be found on GitHub at Interactive Brokers Gateway Docker

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 Interactive Brokers Gateway Docker project. Additionally, this repository introduces its own environment variables that control other components such as NGROK, Flask, Redis, and TBOT.

image

ย 

How to Run Tbot on TradingBoat Docker

How to Build Docker

Clone the repository:

git clone https://github.com/bondjames12/ib-gateway-docker

Copy dotenv into the root directory:

cd ib-gateway-docker
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

image

image

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/bondjames12/tradingview-webhooks-bot .

Then go to http://127.0.0.1:5000

image

Demo

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

Reference



ib-gateway-docker's People

Contributors

efernandesng avatar mfrener avatar plusgenie avatar github-actions[bot] avatar bondjames12 avatar efernandes-ppb avatar electic avatar bluphy avatar fujiapple852 avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.