zdytch / ib-dockerized

Run Interactive Brokers TWS/Gateway in Docker container

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IB Dockerized

Run Interactive Brokers TWS or Gateway in Docker container.

Based on IBC project.

To run Client Portal Web API Gateway in Docker, you may want to use IBeam instead.

IB Dockerized

Environment variables:

  • IB_APP — trading app, possible values are   tws or gw
  • IB_MODE — trading mode, possible values are paper or live
  • IB_USER — username
  • IB_PASSWORD — password
  • VNC_PASSWORDOPTIONAL — if not set, VNC connection is disabled
  • TZOPTIONAL — if not set, app timezone is UTC. Use TZ database name from here, e.g. Europe/Helsinki

IBC Configuration

By default, sample config.ini used. To use custom config.ini, download the sample, modify it and map to /root/ibc/config.ini. Please see example docker-compose.yml.

Run

Use configuration from included sample file docker-compose.yml.

Or run directly with docker run command:

docker run -e IB_APP=tws -e IB_MODE=paper -e IB_USER=ib_user -e IB_PASSWORD=password -e VNC_PASSWORD=vnc_password -e TZ=Europe/Helsinki -p 5900:5900 zdytch/ib-dockerized

Connection

Use container address and port 4002 to connect to the IB application.

Disclaimer

This method of deploying TWS/Gateway is not endorsed nor supported by Interactive Brokers.

About

Run Interactive Brokers TWS/Gateway in Docker container

License:GNU General Public License v3.0


Languages

Language:Dockerfile 65.5%Language:Shell 34.5%