auto: 일일 백업 2026-06-11 02:00

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
hyowons
2026-06-11 02:00:01 +09:00
parent af058cf36d
commit 81e8847a8e
14 changed files with 1064 additions and 342 deletions
+7 -1
View File
@@ -3,7 +3,8 @@
python3 -m sim scan [--force] # 1회 스캔 (launchd/cron 진입점)
python3 -m sim status # 가상계좌 요약
python3 -m sim report [N] # 최근 거래 N건 (기본 20)
python3 -m sim reset [--yes] # 가상계좌 초기화 (1천만 리셋)
python3 -m sim reset [--yes] # 가상계좌 초기화
python3 -m sim variants sync # 비교군을 백테스트 유형별 1위로 동기화 (수동 전용)
"""
from __future__ import annotations
@@ -107,6 +108,11 @@ def _cmd_variants(argv):
print(f'변이 {len(vs)}개 등록:')
for v in vs:
print(' ', v['id'], v['name'])
elif sub == 'sync':
import json as _json
from . import config as _cfg
res = _json.loads((_cfg.STATE_DIR / 'backtest_results.json').read_text())
print('동기화:', variants.sync_label_tops(res))
elif sub == 'reset':
variants.reset_all()
print('변이 계좌 초기화 (정의 유지)')