Hide contract env/UI: keep options+OO hedge and RS key alerts only.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-08-21 17:54:49 +08:00
parent 28c29a0ac7
commit d1e6d841c9
13 changed files with 46 additions and 133 deletions
+2 -1
View File
@@ -22,7 +22,8 @@ def show_perp_funds_enabled(*, exchange_key: str | None = None) -> bool:
ex = (exchange_key or "").strip().lower()
if ex and ex != "okx":
return True
return env_truthy(os.getenv("OKX_SHOW_PERP_FUNDS"), default=True)
# 默认关闭:产品以期权/期期对冲为主;币本位买币时由调用方另或 True
return env_truthy(os.getenv("OKX_SHOW_PERP_FUNDS"), default=False)
@dataclass(frozen=True)