Hi all,

   This question take place when live trade algorithm crashes. My strategy actions sometimes depend on what were previous states. For example, what was the profit of the last 5 trades. It is just an example. When the strategy developed is live trading, and the strategy crashed, I would like to recover the last state when I re-deploy it. Otherwise, the strategy is starting from scratch, instead of continue the expected logic. Of course, this issue doesn't happen on backtesting.

   I don't expect to save complex objects. A simple list of numbers seriealized in a json could be enough. I guess I could use a key/value store db through rest, but I guess it is something too complex. I wonder if there is a better way, that doesn't evolve to use thirty party services. 

 

Thank you.