From 7b9c5751ead4006474b96021313880fb03503625 Mon Sep 17 00:00:00 2001 From: chemavx Date: Tue, 14 Apr 2026 12:53:53 +0000 Subject: [PATCH] feat(polymarket): widen market filter for more uncertainty-zone markets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- bot/data/polymarket.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bot/data/polymarket.py b/bot/data/polymarket.py index a74809a..dc8eef9 100644 --- a/bot/data/polymarket.py +++ b/bot/data/polymarket.py @@ -66,6 +66,7 @@ class PolymarketClient: "nasdaq", "sp500", "s&p 500", "s&p500", "federal reserve", "fed rate", "interest rate", "inflation", "tariff", "treasury yield", + "recession", " gdp ", "unemployment", "trade war", "trade deal", " ipo ", "sec ", "cftc", ] @@ -77,6 +78,7 @@ class PolymarketClient: _TECH_KEYWORDS: list[str] = [ " ai ", "openai", "apple", "google", "microsoft", "meta", "nvidia", "regulation", "antitrust", + "tesla", "elon", "nuclear", "quantum", "chip", ] _EVENTS_KEYWORDS: list[str] = [ @@ -118,10 +120,10 @@ class PolymarketClient: async def get_active_markets( self, - min_volume: float = 1000, + min_volume: float = 500, pages: int = 3, page_size: int = 200, - max_days_to_resolution: int = 30, + max_days_to_resolution: int = 60, ) -> list[Market]: """Fetch active markets from Gamma API (no auth needed).