Enable options by default and allow full sim trading without OKX API keys.

Relax hedge start gates in sim, route perp open/close through sim broker, and mount strategy templates for records pages.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-10-14 09:26:38 +08:00
parent d4b970cfd5
commit b4d62ea0a6
8 changed files with 445 additions and 352 deletions
+2
View File
@@ -64,6 +64,8 @@ def main() -> int:
updates["OKX_OPTIONS_MARGIN_MODE"] = "coin"
if not (env_get(lines, "EXCHANGE_DISPLAY_NAME") or "").strip():
updates["EXCHANGE_DISPLAY_NAME"] = "CoinOX"
if not (env_get(lines, "OKX_OPTIONS_ENABLED") or "").strip():
updates["OKX_OPTIONS_ENABLED"] = "true"
live = (env_get(lines, "LIVE_TRADING_ENABLED") or "").strip().lower()
if live in ("",):
updates["LIVE_TRADING_ENABLED"] = "false"