From 517914f0ef6071d614829963782ec95ae94c9924 Mon Sep 17 00:00:00 2001 From: I Luk Kim Date: Mon, 18 May 2026 01:55:17 -0700 Subject: [PATCH] =?UTF-8?q?fix:=20universe=5Fservice=20market=5Fcap=20?= =?UTF-8?q?=EC=83=81=ED=95=9C=205e12=E2=86=922e13=20=E2=80=94=20NVDA=20$5.?= =?UTF-8?q?5T=20=EC=8A=A4=EB=83=85=EC=83=B7=20=ED=95=84=ED=84=B0=20?= =?UTF-8?q?=ED=95=B4=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit NVDA 시총이 $5.5T를 초과하면서 build/screen 양쪽의 5e12($5T) 상한에 걸려 스냅샷 생성 및 조회에서 제외되던 문제 수정. Co-Authored-By: Claude Sonnet 4.6 --- app/services/universe_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/services/universe_service.py b/app/services/universe_service.py index 3f68e66..30dd25b 100644 --- a/app/services/universe_service.py +++ b/app/services/universe_service.py @@ -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,