Git Product home page Git Product logo

ib-gateway-docker's Introduction

Interactive Brokers Gateway Docker

IB Gateway running in Docker with IBC and VNC

  • TWS Gateway: v981
  • IBC: v3.10.0

Getting Started

./build.sh
# after adding TWSUSERID and TWSPASSWORD to docker-compose.yml
docker-compose up

Expected output

Creating ibgatewaydocker_tws_1 ...
Creating ib-gateway-docker_tws_1 ... done
Attaching to ib-gateway-docker_tws_1
tws_1  | Starting virtual X frame buffer: Xvfb.
tws_1  | stored passwd in file: /.vnc/passwd
tws_1  | Starting x11vnc.
tws_1  | +==============================================================================
tws_1  | +
tws_1  | + IBC version 3.10.0
tws_1  | +
tws_1  | + Running GATEWAY 981
tws_1  | +
tws_1  | + Diagnostic information is logged in:
tws_1  | +
tws_1  | + /opt/IBController/Logs/ibc-3.10.0_GATEWAY-981_Sunday.txt
tws_1  | +
tws_1  | +
tws_1  | Initialized

You will now have the IB Gateway app running on port 4001/4002 and VNC on 5900.

See docker-compose.yml for configuring VNC password, accounts and trading mode.

Please do not open your box to the internet.

Testing VNC

  • localhost:5900

vnc

Troubleshooting

⚠️ You may need to uncheck "Allow connections from localhost only" and add valid Trusted local IP address

settings

# find container IP address
docker container inspect ib-gateway-docker_tws_1 | grep IPAddress
# find host ip address within the same subnet
ifconfig
# then add it to trusted ip address list

⚠️Sometimes, when running in non-daemon mode, you will see this:

Exception in thread "main" java.awt.AWTError: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable.

You will have to remove the container docker-compose down and run docker-compose up again.

ib-gateway-docker's People

Contributors

chunkitmax avatar krumware avatar mvberg avatar zhongdai avatar zhongdai813 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.