Added status and PnL
This commit is contained in:
@ -12,7 +12,7 @@ def startUp():
|
||||
filePath = 'data.json'
|
||||
|
||||
if os.path.exists(filePath):
|
||||
timestamp = datetime.now().strftime('%Y%m%d_%H%M%S')
|
||||
timestamp = datetime.now().strftime('%Y-%m-%d_%H:%M:%S')
|
||||
backupPath = (f'data_backup_{timestamp}.json')
|
||||
shutil.copy(filePath, backupPath)
|
||||
generalLogger.info(f'JSON backup was created: {backupPath}')
|
||||
|
||||
Reference in New Issue
Block a user