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,