Skip to content

Docker container for Interactive Brokers Gateway

License

Notifications You must be signed in to change notification settings

veloquant/ib-ubuntu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Interactive-Brokers Ubuntu

A Docker container encapsulating Interactive Brokers client and gateway. The client and gateway both run unattended, and the client's GUI is also made available over VNC.

This is adapted from the recipe by Robert Laverty provided here.

Building

The build argument IBC_VERSION is provided for selecting the IB client version. If you want to choose a custom version, use --build-arg to specify it.

Running

First, create an account on Interactive Brokers. Set it up so it would only require password authentication (i.e. no two-factor).

The /tmp directory must be made volatile inside the container. Otherwise, left-over files could cause Xvnc errors in restarts. The example below shows how to set this when launching the container.

A container built from this repository is available on Docker-Hub. Example command for using it:

docker run --restart=unless-stopped -d -p 127.0.0.1:5900:5900 -p 4001:44001-e IB_USER=YOUR_USER -e IB_PW=YOUR_PASSWORD --name ib-gateway --mount type=tmpfs,destination=/tmp yitzikc/ib-gateway

Ports being exposed:

  • 44001: Interactive Brokers gateway. Available from any source address
  • 4001: Same as 44001 above, but is only available if IB Client is set-up to listen on addresses apart from localhost. Even if that is configured, connections other than from the Docker host would require explicit approval on the IBC GUI.
  • 5900: VNC port

Monitoring

IB Client GUI can be viewed on port 5900 using VLC. Since there's no password, you might want to only publish this port if actually needed, or only publish it to 127.0.0.1. The example above shows how to make the port available only locally.

About

Docker container for Interactive Brokers Gateway

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published