fix: universe_service market_cap 상한 5e12→2e13 — NVDA $5.5T 스냅샷 필터 해제

NVDA 시총이 $5.5T를 초과하면서 build/screen 양쪽의 5e12($5T) 상한에
걸려 스냅샷 생성 및 조회에서 제외되던 문제 수정.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
main
I Luk Kim 3 months ago
parent d513f64922
commit 517914f0ef

@ -411,7 +411,7 @@ class UniverseService:
continue
market_cap = shares * close
if math.isnan(market_cap) or market_cap <= 0 or market_cap > 5e12:
if math.isnan(market_cap) or market_cap <= 0 or market_cap > 2e13:
continue
snapshot_dt = datetime(
@ -596,7 +596,7 @@ class UniverseService:
snapshot_dt = datetime(target.year, target.month, 1, tzinfo=timezone.utc)
# Always exclude clearly bad data (sanity cap: $5T max, historical record is ~$3.7T)
_MAX_MARKET_CAP = 5e12
_MAX_MARKET_CAP = 2e13
conditions = [
UniverseSnapshot.snapshot_date == snapshot_dt,
UniverseSnapshot.market_cap <= _MAX_MARKET_CAP,

Loading…
Cancel
Save