Skip to content

Docker Container: TWS won't start #579

@Jinzuu

Description

@Jinzuu

I am trying to run thetagang's docker image.

However, when executing the docker run command, it just sits at this point and does nothing:

Exchange Hours XFRA
────────────────────────────────────────────
Open 2025-07-04 07:00:00+00:00
Close 2025-07-04 15:30:00+00:00
Start 2025-07-04 07:30:00+00:00
End 2025-07-04 15:00:00+00:00

Starting TWS with twsVersion=1030

At this point, nothing else happens. I let it sit for some time (minutes) but nothing happens.

In the ib_async log it reads:

2025-07-04 08:27:51,708 ib_async.client INFO Connecting to 127.0.0.1:7497 with clientId 1...
2025-07-04 08:27:51,710 ib_async.client INFO Disconnecting
2025-07-04 08:27:51,710 ib_async.client ERROR API connection failed: ConnectionRefusedError(111, "Connect call failed ('127.0.0.1', 7497)")
2025-07-04 08:27:51,711 ib_async.client ERROR Make sure API port on TWS/IBG is open

Does the thetagang-docker need anything else? I thought IBC and TWS is contained in the docker container?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions