Comments (4)
Assuming you mean this popup:
we just merged an update to support re-login properly, which has been tested with IBGateway v974 (default version used in LEAN and QC cloud).
Please let us know if this update also resolved your issue with 976.
from ibautomater.
not that dialog - in 976 onward ib introduced the daily logoff nag just like they have in tws if you‘ve ever dealt with that. ib gateway now logs you out every day at a time of your choice - would be awesome to automate that.
from ibautomater.
I did some more research on this tonight - when you have ib gateway automatically restart instead of automatically log off, there is no login dialog for you to automate - it logs back in for you. However the default is to automatically log off (unlike my screenshot, IBAutomater appears to use a blank default profile perhaps so the settings are fresh each time?) which means the gateway just exits with no prompts at your specified time..
I think what needs to be automated for current latest version is:
- Select automatically restart, leave the default time of 11:45 pm set but change the radio button to “Auto restart”
- Have LEAN be able to handle a gateway restart event and maintain broker connection - I have not tested this as I can’t get the restart functionality to work while LEAN is running - perhaps it can already handle this?
Since this option appears only in 976 it will probably need to be some version specific behavior - that configuration option doesn’t even exist in 974 I believe.
If I could get IBAutomater to start with the “Auto restart” option I can test how LEAN coexists with this configuration option, maybe it can tolerate a restart already.
from ibautomater.
Here is the ib doc page it wants me to read when I select “Auto restart” btw: https://www.interactivebrokers.com/en/software/tws/twsguide.htm#usersguidebook/configuretws/auto_restart_info.htm
Note that you can’t disable this it seems - you either get automatically logged out or you can choose to restart in the latest versions of ib gateway
Seems it will prompt for auth once a week as well, further adding to the complexity of this.
My workaround for this issue is I have a script to terminate LEAN and ib gateway every day after my configured restart time then start it back up again - this reauths me and appears to work fine but this will surely be an issue for 24 hour markets..
from ibautomater.
Related Issues (15)
- Create a complete hello world demo using the code.
- "Invalid TwsInfo" on IBGateway 978 HOT 1
- Multi-targeting (NET Standard 2.0 + NET Framework 4.5)
- IB gateway still restarts after #18 HOT 2
- Settings will not be downloaded from the server because the feature has been temporarily disabled. Displayed HOT 4
- IBAutomater generated script on Linux assumes Xvfb is installed
- IBAutomater should test for already running Gateway or TWS before trying to start a new Gateway
- Add handler for "Enter security code" popup window HOT 1
- Trading Mode toggle button not found HOT 1
- IBAutomater fails with "File not found" if (auto detected) Java path has spaces in it
- Docker image HOT 4
- Unresponsive IB Gateway in Digital Ocean HOT 1
- Configurable Sunday Restart HOT 1
- Upgrade to Use TWS 978 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ibautomater.