feat(polymarket): widen market filter for more uncertainty-zone markets
CI/CD / build-and-push (push) Successful in 1m31s

- min_volume: 1000 → 500 USDC (surface lower-liquidity but real markets)
- max_days_to_resolution: 30 → 60 days (more markets with unresolved uncertainty)
- Tech keywords: +tesla, +elon, +nuclear, +quantum, +chip
- Macro keywords: +recession, +gdp, +unemployment, +trade war, +trade deal
  (inflation/tariff already present)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
chemavx
2026-04-14 12:53:53 +00:00
parent 5a9c6add41
commit 7b9c5751ea
+4 -2
View File
@@ -66,6 +66,7 @@ class PolymarketClient:
"nasdaq", "sp500", "s&p 500", "s&p500", "nasdaq", "sp500", "s&p 500", "s&p500",
"federal reserve", "fed rate", "interest rate", "federal reserve", "fed rate", "interest rate",
"inflation", "tariff", "treasury yield", "inflation", "tariff", "treasury yield",
"recession", " gdp ", "unemployment", "trade war", "trade deal",
" ipo ", "sec ", "cftc", " ipo ", "sec ", "cftc",
] ]
@@ -77,6 +78,7 @@ class PolymarketClient:
_TECH_KEYWORDS: list[str] = [ _TECH_KEYWORDS: list[str] = [
" ai ", "openai", "apple", "google", "microsoft", "meta", " ai ", "openai", "apple", "google", "microsoft", "meta",
"nvidia", "regulation", "antitrust", "nvidia", "regulation", "antitrust",
"tesla", "elon", "nuclear", "quantum", "chip",
] ]
_EVENTS_KEYWORDS: list[str] = [ _EVENTS_KEYWORDS: list[str] = [
@@ -118,10 +120,10 @@ class PolymarketClient:
async def get_active_markets( async def get_active_markets(
self, self,
min_volume: float = 1000, min_volume: float = 500,
pages: int = 3, pages: int = 3,
page_size: int = 200, page_size: int = 200,
max_days_to_resolution: int = 30, max_days_to_resolution: int = 60,
) -> list[Market]: ) -> list[Market]:
"""Fetch active markets from Gamma API (no auth needed). """Fetch active markets from Gamma API (no auth needed).