heshiming / ibga

IB Gateway in a headless docker container.
GNU General Public License v3.0
23 stars 3 forks source link

Reconnecting Sessions #10

Closed bitmanip closed 8 months ago

bitmanip commented 9 months ago

Is there a way to reconnect sessions when other logins are detected? It would be ideal if the gateway session would always take back control. Maybe a configuration option?

Screenshot 2024-01-09 at 10 27 49 AM
heshiming commented 9 months ago

Automatically clicking this button would make IBG compete with your other sessions. You are aware of the session when you log into the other software, supposedly trying to do something manually.

Do you want IBG to steal that session? Or do you want to wait for a few minutes before doing so?

bitmanip commented 9 months ago

Yes. I am aware. Ideally I would like IBG to disconnect any other sessions and always be the primary gateway. I need to keep it connected to the market at all times and this seems like a potential risk.

heshiming commented 9 months ago

Ok, sounds like you have deployed a system, which I admire. I'll make this an option soon and let you know via this thread.

heshiming commented 9 months ago

Hi, I just noticed that your message is on the initial startup of IBG, not in the middle. So in the latest update, I decided to make it mandatory and default to kick out the existing session upon start. But it'll kick session just once.

I have updated the docker image, so if you pull now, it'll include the change.

bitmanip commented 8 months ago

Thanks a bunch. This is an excellent change. Really appreciate the help, and yes, I have deployed a system that is actively trading.