Sign inSign up

manhinhang/ib-gateway-docker

By manhinhang

•Updated 4 days ago

lightweight interactive brokers gateway docker

Image
2

10.0K

manhinhang/ib-gateway-docker repository overview

⁠IB Gateway docker

Build test Docker Pulls GitHub

lightweight interactive brokers gateway docker

It's just pure IB Gateway and don't include any VNC service (for security reason, I don't like expose extra port)

This docker image just installed:

⁠Pull the Docker image from Docker Hub

docker pull manhinhang/ib-gateway-docker
⁠Create a container from the image and run it
docker run -d \
--env IB_ACCOUNT= \ #YOUR_USER_ID 
--env IB_PASSWORD= \ #YOUR_PASSWORD  
--env TRADE_MODE= \ #paper or live 
--p 4002:4002 \ #brige IB gateway port to your local port 4002
manhinhang/ib-gateway-docker tail -f /dev/null

⁠Build & Run locally

git clone [email protected]:manhinhang/ib-gateway-docker.git
cd ib-gateway-docker
docker build -t ib-gateway-docker .
docker run -d \
--env IB_ACCOUNT= \ #YOUR_USER_ID 
--env IB_PASSWORD= \ #YOUR_PASSWORD  
--env TRADE_MODE= \ #paper or live 
ib-gateway-docker \
tail -f /dev/null

⁠Container usage example

ExampleLinkDescription
ib_insyncexamples/ib_insync⁠This example demonstrated how to connect IB Gateway
google cloud secret managerexamples/google_cloud_secret_manager⁠retreive your interactive brokers account from google cloud secret manager

⁠Tests

The test cases⁠ written with testinfra.

Run the tests

pytest

⁠Github Actions for continuous integration

After forking IB Gateway docker repository, you need config your interactive brokers paper account & password in github secret

KeyDescription
IB_ACCOUNTyour paper account name
IB_PASSWORDyour paper account password

⁠Disclaimer

This project is not affiliated with Interactive Brokers Group, Inc.'s⁠.

Good luck and enjoy.

Tag summary

Content type

Image

Digest

sha256:167cb4cc6…

Size

932.7 MB

Last updated

4 days ago

docker pull manhinhang/ib-gateway-docker