Giter VIP home page Giter VIP logo

ib-docker's Introduction

Container to easily set up Interactive Brokers Gateway in a headless environment.

Quick Usage

  1. Check out the repo.

  2. docker build -t <pick-a-name> . from within the repo. You should build your own image rather than use one on dockerhub for security reasons.

  3. Set your own environment variables as necessary in docker-compose.yml. This likely includes copying a jts.ini file in from a computer you have used IB on already.

  4. docker-compose up

  5. The IB API is now available from your host on 127.0.0.1:4003

Configuration

IBController.ini and jts.ini are mounted as volumes from the host into the docker container. You can configure them from the host, launch docker and the settings will be available in the container.

Ports

Port 4001 is hard-coded as the IB port from within the container. Port 4003 is hard-coded as the API port, accessible from host.

In order for docker to bind a port from the host into the container, the service must be running on 0.0.0.0: from within the container. socat is used to bind 0.0.0.0:4003 onto the same process launched by IBController.

In future these should be set by environment variables, but running into issues where we try to use the same port for both.

VNC

Some work has been done to set up VNC into the xvfb session, but I have not found it necessary and will likely remove it soon.

ib-docker's People

Contributors

ryankennedyio avatar

Watchers

Björn 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.