fix: reduce F&G log noise and skip scan loop when blocked

- fng.py: downgrade per-ticker block log to DEBUG
- runner.py: skip entire scan (continue) when F&G < FNG_MIN_ENTRY
  instead of iterating 20 tickers each blocked individually

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
joungmin
2026-03-03 15:57:12 +09:00
parent 27189b1ad9
commit bfe0b4d40c
2 changed files with 7 additions and 3 deletions

View File

@@ -67,5 +67,5 @@ def is_entry_allowed() -> bool:
"공포" if fv <= 40 else
"약공포"
)
logger.info(f"[F&G] 진입 차단 — F&G={fv} ({label}) < {FNG_MIN_ENTRY}")
logger.debug(f"[F&G] 진입 차단 — F&G={fv} ({label}) < {FNG_MIN_ENTRY}")
return allowed

View File

@@ -74,7 +74,7 @@ def run_scanner() -> None:
time.sleep(SCAN_INTERVAL)
continue
# F&G 진입 필터 로그 (should_buy 내부에서 차단하지만 스캔 전 상태 기록)
# F&G 진입 필터 — 차단 구간이면 전체 스캔 스킵
fv = get_fng()
fng_label = (
"극탐욕" if fv >= 76 else "탐욕" if fv >= 56 else
@@ -82,7 +82,11 @@ def run_scanner() -> None:
"공포" if fv >= 26 else "극공포"
)
if fv < FNG_MIN_ENTRY:
logger.info(f"[F&G차단] F&G={fv} ({fng_label}) < {FNG_MIN_ENTRY} — 이번 스캔 진입 없음")
logger.info(
f"[F&G차단] F&G={fv} ({fng_label}) < {FNG_MIN_ENTRY} — 신규 매수 스킵"
)
time.sleep(SCAN_INTERVAL)
continue
tickers = get_top_tickers()
logger.info(f"스캔 시작: {len(tickers)}개 종목 | F&G={fv}({fng_label})")