GithubHelp home page GithubHelp logo

cgd1 / docker-ibgw Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jaikumarm/docker-ibgw

0.0 0.0 0.0 28 KB

Dockerized IB Gateway and IBController with Xvfb

Dockerfile 44.54% Python 55.46%

docker-ibgw's Introduction

Dockerized IB Gateway and IBC with xvfb and novnc for remote viewing

CircleCI

See CHANGELOG for a list of notable changes

Usage

Clone this repository and build the image:

git clone https://github.com/jaikumarm/docker-ibgw.git
cd docker-ibgw
docker build . -t docker-ibgw

Run your image with docker run

docker run \
    -e TWS_USER=CHANGEME \
    -e TWS_PASSWORD=CHANGEME \
    -e TWS_PORT=4001 \
    -e SOCAT_PROXY_PORT=4004 \
    -e TWS_LIVE_PAPER=paper \
    -p 4001:4001 -p 5901:5900 -p 8088:8080 \
    -v /var/log/ibgw:/opt/ibc/logs \
    -d docker-ibgw

With docker-compose edit the docker-compose.yml with your ib credentials, then run

docker-compose -f docker-compose.yml up -d ibgw

In docker logs of the container and you should see

...
2020-03-10 00:04:00,318 ib_insync.IBC DEBUG 2020-03-10 00:04:00:317 IBC: Detected frame entitled: IB Gateway.  API Account: xxxxxxx; event=Activated
2020-03-10 00:04:00,320 ib_insync.IBC DEBUG 2020-03-10 00:04:00:320 IBC: Detected dialog entitled: Uxxxxxxx Trader Workstation Configuration; event=Closed
2020-03-10 00:04:21,354 ib_insync.IBC DEBUG remove Client 10
...

If you see ib_insync.IBC DEBUG remove Client 10. it means its all good.

This is fairly a opinionated configuration based on my own needs, if you (don't) like it fork it!

Thanks!

Thanks to the two projects without which this repo will likely not exist!

Also some of the code is borrowed and/or inspired from in no particular order

docker-ibgw's People

Contributors

jaikumarm 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.