docker-tws
docker-tws copied to clipboard
Docker container for running Trader Workstation headless
TWS
Creates a completely self-contained Docker container of Trader Workstation. Exposes a VNC service on port 5900 and 7496/7497 for the IB API.
Usage
git clone [email protected]:ryanclouser/docker-tws.gitcd docker-tws- Configure Trader Workstation on a local system.
- Copy
jts.inito the cloned repository folder. - Copy
tws.xmlfrom your profile folder into the cloned repository folder (it's inside the very long folder name). This contains your account settings (like enabling/disabling read-only mode).
- Copy
- Edit
Dockerfileand change thePROFILEvariable to the name of your profile. - Edit the VNC resolution and password in
Dockerfileif needed. docker build -t tws .docker run -d --rm --name tws -e ARGS="username=IB_USERNAME password=IB_PASSWORD" -p 5900:5900 -p 7496:7496 -p 7497:7497 tws
If paper trading, a 'return' keystroke will be sent after 60s to skip the warning dialog.