清理残留 skip_polymarket 参数和 PM 注释
This commit is contained in:
@@ -30,7 +30,6 @@ async def scan_terminal(
|
||||
force_refresh: bool = False,
|
||||
region: str = "",
|
||||
trading_region: str = "",
|
||||
skip_polymarket: bool = False,
|
||||
timezone_offset_seconds: int | None = None,
|
||||
):
|
||||
return await get_scan_terminal_payload(
|
||||
@@ -46,7 +45,6 @@ async def scan_terminal(
|
||||
limit=limit,
|
||||
force_refresh=force_refresh,
|
||||
region=region or trading_region or None,
|
||||
skip_polymarket=skip_polymarket,
|
||||
timezone_offset_seconds=timezone_offset_seconds,
|
||||
)
|
||||
|
||||
|
||||
@@ -48,7 +48,6 @@ def normalize_scan_terminal_filters(
|
||||
or "today",
|
||||
"limit": max(1, min(safe_int(raw.get("limit"), 25), 200)),
|
||||
"max_spread": max(0.0, _safe_float(raw.get("max_spread")) or 0.03),
|
||||
"skip_polymarket": str(raw.get("skip_polymarket") or "false").lower()
|
||||
in {"1", "true", "yes", "on"},
|
||||
}
|
||||
trading_region = str(raw.get("trading_region") or "").strip().lower()
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user