feat: implement scan terminal service with caching, background refresh, and AI-driven market analysis support

This commit is contained in:
2569718930@qq.com
2026-04-25 04:25:17 +08:00
parent 77c0597e74
commit 3083d6b8fe
8 changed files with 474 additions and 32 deletions
@@ -3343,6 +3343,15 @@ class PolymarketReadOnlyLayer:
return False
if edge_percent < filters["min_edge_pct"]:
return False
side = str(row.get("side") or "").lower()
market_direction = str(row.get("market_direction") or "").lower()
if (
side == "no"
and market_direction in {"exact", "range"}
and ask >= 0.80
and edge_percent < 10.0
):
return False
if spread is None or spread > filters["max_spread"]:
return False
if liquidity < filters["min_liquidity"]: