Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ibeam + trading bot app not connecting #210

Open
hughandersen opened this issue Aug 9, 2024 · 1 comment
Open

Ibeam + trading bot app not connecting #210

hughandersen opened this issue Aug 9, 2024 · 1 comment

Comments

@hughandersen
Copy link

Is it possible to create a multi-container docker app with an Ibeam container and a trading container?
I tried, but the trading container is struggling to connect to IBKR API via Ibeam. To test this out, I created some code and a public repo in my Github account. Clone from [email protected]:hughandersen/trading_app.git

@exallon72
Copy link

I actually just experinced this problem in a docker network. Do you have any ideas on how to fix this?

I have no problem connecting from my development computer directly to the IP adress of that computer. But everything from localhost or the docker network seems to be blocked. I can ping the ibeam docker without problems.

2024-10-03 08:45:43,566|E| Tickle request failed: IbkrClient: response error Result(data=None, request={'url': 'https://ibeam:5000/v1/api/tickle'}) :: 404 :: Not Found :: Access Denied

ibeam:
image: voyz/ibeam:0.5.5
container_name: ibeam
env_file:
- env.list
ports:
- "0.0.0.0:5000:5000"
- "0.0.0.0:5001:5001"
restart: "no"
networks:
- algotech

stream:
image: algo
container_name: stream
depends_on:
- ibeam
environment:
- PYTHONDONTWRITEBYTECODE=1
- PYTHONUNBUFFERED=1
- startup=True
- PRELOAD=False
- IBEAM_HOST=ibeam
command: python3 stream.py
networks:
- algotech

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants