后端深度清理 Polymarket:删除 readonly 层+WS 缓存+market_scan API

删除 src/data_collection/polymarket_readonly.py(2500行)和 polymarket_ws_cache.py。city_payloads 移除 _get_polymarket_layer/_top_probability_bucket/build_city_market_scan_payload。city.py 移除 /market-scan 和 /holders 路由。scan_terminal 移除 skip_polymarket。
This commit is contained in:
2569718930@qq.com
2026-05-25 20:02:30 +08:00
parent 66038e060c
commit 3bc1a4a1ed
11 changed files with 761 additions and 918 deletions
-2
View File
@@ -47,7 +47,6 @@ async def get_scan_terminal_payload(
limit: int = 25,
force_refresh: bool = False,
region: str = "",
skip_polymarket: bool = False,
timezone_offset_seconds: int | None = None,
) -> Dict[str, Any]:
legacy_routes._assert_entitlement(request)
@@ -61,7 +60,6 @@ async def get_scan_terminal_payload(
"market_type": market_type,
"time_range": time_range,
"limit": limit,
"skip_polymarket": skip_polymarket,
}
if timezone_offset_seconds is not None:
filters["timezone_offset_seconds"] = timezone_offset_seconds