{"id":13844711,"url":"https://github.com/mvberg/ib-gateway-docker","last_synced_at":"2025-04-06T06:11:23.746Z","repository":{"id":46005808,"uuid":"140492614","full_name":"mvberg/ib-gateway-docker","owner":"mvberg","description":"Interactive Brokers Trading Gateway running in Docker","archived":false,"fork":false,"pushed_at":"2024-08-07T16:58:21.000Z","size":38,"stargazers_count":232,"open_issues_count":20,"forks_count":102,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-03-30T03:11:07.266Z","etag":null,"topics":["automated-trading","docker","ib","ib-controller","interactive-brokers","market-data","tws","twsapi"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mvberg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-10T22:14:55.000Z","updated_at":"2025-03-24T12:51:23.000Z","dependencies_parsed_at":"2024-11-09T10:04:39.310Z","dependency_job_id":null,"html_url":"https://github.com/mvberg/ib-gateway-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvberg%2Fib-gateway-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvberg%2Fib-gateway-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvberg%2Fib-gateway-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvberg%2Fib-gateway-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mvberg","download_url":"https://codeload.github.com/mvberg/ib-gateway-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247441053,"owners_count":20939239,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automated-trading","docker","ib","ib-controller","interactive-brokers","market-data","tws","twsapi"],"created_at":"2024-08-04T17:02:53.215Z","updated_at":"2025-04-06T06:11:23.727Z","avatar_url":"https://github.com/mvberg.png","language":"Shell","funding_links":[],"categories":["Shell (473)","Shell"],"sub_categories":[],"readme":"# Interactive Brokers Gateway Docker\n\nIB Gateway running in Docker with [IB Controller](https://github.com/ib-controller/ib-controller/) and VNC\n\n* TWS Gateway: v974.4g\n* IB Controller: v3.2.0\n\n### Docker Hub image\n\n* https://hub.docker.com/r/mvberg/ib-gateway-docker\n\n### Getting Started\n\n```bash\n\u003e git clone\n\u003e cd ib-gateway-docker\n\u003e docker build .\n\u003e docker-compose up\n```\n\n#### Expected output\n\n```bash\nCreating ibgatewaydocker_tws_1 ...\nCreating ibgatewaydocker_tws_1 ... done\nAttaching to ibgatewaydocker_tws_1\ntws_1  | Starting virtual X frame buffer: Xvfb.\ntws_1  | find: '/opt/IBController/Logs': No such file or directory\ntws_1  | stored passwd in file: /.vnc/passwd\ntws_1  | Starting x11vnc.\ntws_1  |\ntws_1  | +==============================================================================\ntws_1  | +\ntws_1  | + IBController version 3.2.0\ntws_1  | +\ntws_1  | + Running GATEWAY 960\ntws_1  | +\ntws_1  | + Diagnostic information is logged in:\ntws_1  | +\ntws_1  | + /opt/IBController/Logs/ibc-3.2.0_GATEWAY-960_Tuesday.txt\ntws_1  | +\ntws_1  | +\ntws_1  | Forking :::4001 onto 0.0.0.0:4003\\n\n```\n\nYou will now have the IB Gateway app running on port 4003 and VNC on 5901.\n\nSee [docker-compose.yml](docker-compose.yml) for configuring VNC password, accounts and trading mode.\n\nPlease do not open your box to the internet.\n\n### Testing VNC\n\n* localhost:5901\n\n![vnc](docs/ib_gateway_vnc.jpg)\n\n### Demo Accounts\n\nIt seems that all of the `demo` accounts are dead for good:\n\n* edemo\n* fdemo\n* pmdemo\n\n### Troubleshooting\n\nSometimes, when running in non-daemon mode, you will see this:\n\n```java\nException in thread \"main\" java.awt.AWTError: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable.\n```\n\nYou will have to remove the container `docker rm container_id` and run `docker-compose up` again.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmvberg%2Fib-gateway-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmvberg%2Fib-gateway-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmvberg%2Fib-gateway-docker/lists"}