Skip to content

Run Interactive Brokers TWS/Gateway in Docker container

License

Notifications You must be signed in to change notification settings

zdytch/ib-dockerized

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published