backup_state#

API documentation for tradeexecutor.cli.bootstrap.backup_state Python function.

backup_state(state_file, backup_suffix='backup')[source]#

Take a copy of the state file, then read the original file.

Parameters:

state_file (pathlib.Path | str) –

Return type:

Tuple[JSONFileStore, State]