extrange / ibkr-docker

Run IBKR Gateway/TWS in a Docker container
159 stars 34 forks source link

Not an issue but question #21

Closed wdamaral closed 1 year ago

wdamaral commented 1 year ago

I've been trying to use a docker volume to save IBKR settings such data I don't lose them after rebuilding the container. The IBCAlpha mentions the TWS_SETTINGS_PATH that should be used with the Startup script. I don't think it's something that I can pass as an environment variable now.

Would you have any suggestion?

extrange commented 1 year ago

Yes, it's possible, I'll update the repo in a bit. However note the TWS_SETTINGS_PATH directory is quite messy:

test/
├── cakaekec<truncated>
│   ├── audit.20230502.210442.ibgzenc
│   ├── cheatsheets
│   │   └── spec.txt
│   ├── language.jar
│   ├── nia2.lck
│   ├── nia2.log
│   ├── nia2.properties
│   ├── nia2.script
│   ├── nia2.tmp
│   ├── sounds
│   │   ├── en
│   │   │   ├── alarms.mp3
│   │   │   ├── bulletin_received.mp3
│   │   │   ├── closing_order_filled.mp3
│   │   │   ├── closing_order_partially_filled.mp3
│   │   │   ├── confirm_blotter_cancel.mp3
│   │   │   ├── confirm_blotter_modify.mp3
│   │   │   ├── confirm_blotter_submit.mp3
│   │   │   ├── md_connection_lost.mp3
│   │   │   ├── md_connection_reestablished.mp3
│   │   │   ├── opening_order_filled.mp3
│   │   │   ├── opening_order_partially_filled.mp3
│   │   │   ├── order_cancelled.mp3
│   │   │   ├── order_filled.mp3
│   │   │   ├── order_partially_filled.mp3
│   │   │   ├── rfq_received.mp3
│   │   │   ├── trading_connection_lost.mp3
│   │   │   └── trading_connection_reestablished.mp3
│   │   └── sounds.properties
│   ├── tws.20230502.210430.ibgzenc
│   ├── tws.tmp.xml
│   └── tws.xml
├── jts.ini
├── launcher.log
├── messageurls.properties
└── xmlopt.dat
extrange commented 1 year ago

01e7937