feat: 운영 시작 시 누락 봉 증분 동기화 및 B-1 실거래 설정

05/06 시작 전 ops_sync로 지연 간격만 증분 보완하고, Phase B-1 live env·ncue 실행 래퍼를 반영한다.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dsyoon
2026-06-03 13:46:59 +01:00
parent 1fc560744d
commit a16c942be4
14 changed files with 301 additions and 14 deletions

View File

@@ -316,13 +316,21 @@ def download_symbol(
symbol: str,
interval: int,
months: int,
*,
verbose: bool = True,
skip_backfill: bool = False,
) -> None:
"""한 간격의 봉을 API로 받아 증분·백필 저장합니다."""
"""
한 간격의 봉을 API로 받아 증분·백필 저장합니다.
Args:
skip_backfill: True면 운영 증분만(백필 생략). 05/06 시작 동기화용.
"""
months = months_for_interval(interval, months)
label = interval_label(interval)
existing = get_row_count(symbol, interval)
if existing > 0:
if existing > 0 and not skip_backfill:
backfill_before_earliest(monitor, symbol, interval, months)
last_ts = get_last_timestamp(symbol, interval)
@@ -341,7 +349,7 @@ def download_symbol(
print(f" DB 기존 {existing}행 | API 목표 약 {target}")
data = monitor.get_coin_more_data(
symbol, interval, bong_count=target, verbose=True
symbol, interval, bong_count=target, verbose=verbose
)
if data is None or data.empty:
print(" -> API 데이터 없음")