Added status and PnL

This commit is contained in:
2025-05-19 15:45:30 +03:00
parent 1314f566fb
commit e9d10af8da
7 changed files with 91 additions and 21 deletions

View File

@ -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}')