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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user