iterativv / NostalgiaForInfinity

Trading strategy for the Freqtrade crypto bot
GNU General Public License v3.0
2.05k stars 509 forks source link

Purpose of periodic container restarts in NostalgiaForInfinity #448

Open seventhsite opened 13 hours ago

seventhsite commented 13 hours ago

Hi there! 👋

I noticed in the docker-compose.yaml file for the NostalgiaForInfinity strategy that there's a service set up to restart the main container every 86400 seconds. Could you explain the reason behind this setup? Is it for stability, reconnecting to the exchange, or something else? Just curious to understand the thought process here.

Thanks in advance!

iterativv commented 13 hours ago

Hi, yes, You don't have to use these exact. Just what are your preferences.

seventhsite commented 13 hours ago

Got it, thanks! So just to clarify, is this included mainly as a suggestion for stability or other reasons? Or is it more of a placeholder for users to customize as needed?

iterativv commented 2 hours ago

Got it, thanks! So just to clarify, is this included mainly as a suggestion for stability or other reasons? Or is it more of a placeholder for users to customize as needed?

Yes, in fact you don't have to use this. I don't use docker at all, for example, just native Python to run the bots. It's not required, just in order to update NFI either reload or - yes - some times a complete restart.