#!/usr/bin/env python3
"""03b CSV에 누락된 GT 타점만 MTF 스냅샷 보강."""
import runpy
from pathlib import Path

runpy.run_path(str(Path(__file__).resolve().parent / "_bootstrap.py"))

from config import CHART_LOOKBACK_DAYS, SYMBOL
from deepcoin.analysis.general_analysis_snapshot import append_missing_gt_snapshots
from deepcoin.data.mtf_bb import load_frames_from_db
from deepcoin.ops.monitor import Monitor

if __name__ == "__main__":
    mon = Monitor(cooldown_file=None)
    frames = load_frames_from_db(mon, SYMBOL, lookback_days=CHART_LOOKBACK_DAYS)
    n = append_missing_gt_snapshots(frames)
    print(f"완료: {n}건 추가")
