Coder Social home page Coder Social logo

Comments (4)

StefanoRaggi avatar StefanoRaggi commented on July 26, 2024

Assuming you mean this popup:
image
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.

imphasing avatar imphasing commented on July 26, 2024

Photo Jul 05, 7 57 46 PM

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.

imphasing avatar imphasing commented on July 26, 2024

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:

  1. Select automatically restart, leave the default time of 11:45 pm set but change the radio button to “Auto restart”
  2. 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.

imphasing avatar imphasing commented on July 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.