Coder Social home page Coder Social logo

allanclempe / ib-gateway-docker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from antequant/ib-gateway-docker

0.0 0.0 0.0 30 KB

Interactive Brokers Gateway as a Docker image

Home Page: https://hub.docker.com/repository/docker/antequantmirror/ib-gateway-docker

License: MIT License

Dockerfile 44.58% Shell 55.42%

ib-gateway-docker's Introduction

ib-gateway-docker

This builds a Docker image with the latest version of Interactive Brokers' IB Gateway, the modern IbcAlpha/IBC for automation, and a VNC server for debugging purposes.

Building

docker build . -t ib-gateway-docker

Running

docker run --name=ib-gateway -p 4002:4002 -p 5900:5900 --env-file=.env ib-gateway-docker:latest

This will expose port 4002 for the TWS API (usable with, e.g., ib_insync) and 5900 for VNC (with default password 1358). Neither are secure for public internet access, as the expectation is that private, secure services will sit on top and be the only open interface to the internet.

To disable VNC, set VNC_PORT as empty value in .env file.

Multi instances

Run more than one instance if you want to work with multi clients. Set .env file IB_INSTANCES paramater with number of instances. Username, password and ports will be sufixed with underscore + number of instance.

eg:

IB_INSTANCES=2 # number of instances
TWS_PORT_RANGE=4000-4003 # exported ports

# first instance config
TWSUSERID_1=<your_username>
TWSPASSWORD_1=<your_password>
TWS_PORT_1=4002

# second instance config
TWSUSERID_2=<your_username>
TWSPASSWORD_2=<your_password>
TWS_PORT_2=4003

running it:

docker run -p 4002:4002 \
           -p 4003:4003 \
           -p 5900:5900 \
           --env-file .env \
           ib-gateway-docker:latest

ib-gateway-docker's People

Contributors

allanclempe avatar gjtorikian avatar jspahrsummers 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.