queball99 / CoinbasePro-Recurring-Buy

A Python app to automate buying cryptocurrency on the Coinbase Pro exchange. Runs in a Docker container for convenience.
GNU General Public License v3.0
43 stars 4 forks source link

Option to remember last purchase so that "every X" days/seconds Schedules still work after restart? #9

Open jgoggan opened 2 years ago

jgoggan commented 2 years ago

It would be great if it would remember the last buy timestamp so that, if it needs to be rebooted (say the PC needs to reboot and restarts the docker), then scheduled buys still occur on schedule.

For example, right now, I have mine set to buy every 3 days. It last bought on October 3rd -- so it should have bought again this morning. However, I forgot that I had rebooted yesterday -- thereby restarting the docker -- and that seemed to "reset" the "every 3 days" schedule to start from the time that the docker started. So, it missed today's buy, of course.

If it could timestamp the last buy and check that when starting up so that it could continue an "every X days" or "every X seconds" schedule, that would be great!

Thank you for your time and work on this project!