-
Hi @cjdsellers @limx0 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hey @rsmb7z, not explicitly in nautilus, this is more something you would do outside of your python process (via cron or the like). If you wanted to keep your state between runs you can use redis as a cache database and persist any strategy data there on shutdown. Does that suit your use case ? |
Beta Was this translation helpful? Give feedback.
-
Yeah so I have a feeling that might be the IB midnight reset, the way I handle this is setting a shutdown timer q hour after market close and a cron to restart. This has the added benefit of being a good time to upgrade code etc. I'm not sure we want to tackle this inside of nautilus, but happy to brainstorm some potential solutions. You're correct it would be trivial to run an actor for time based events, the trouble is the actor runs as somewhat of an isolated instance without the power to affect the rest of the system. |
Beta Was this translation helpful? Give feedback.
Hey @rsmb7z, not explicitly in nautilus, this is more something you would do outside of your python process (via cron or the like). If you wanted to keep your state between runs you can use redis as a cache database and persist any strategy data there on shutdown.
Does that suit your use case ?