Enable hedge review with dual-timeframe K-line charts.
Always install the review module in hedge-only mode, expose 对冲复盘 in nav, and allow auto charts for closed hedge plans. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -9941,7 +9941,7 @@ from lib.sim.register import install_sim_trading
|
||||
|
||||
install_sim_trading(app, _REPO_ROOT, app_module=sys.modules[__name__])
|
||||
|
||||
# 本仓默认仅对冲:不装单独期权页/复盘/独立盯盘(执行层由 hedge 共用 okx_options_lib).
|
||||
# 本仓默认仅对冲:不装单独期权交易页/独立盯盘;复盘始终安装(对冲复盘+双周期K线).
|
||||
# 紧急需要单独期权 UI 时设 STANDALONE_OPTIONS_UI=true(不推荐;专用期权仓更完整).
|
||||
from lib.hedge_plan.okx_trade_mode_lib import standalone_options_ui_enabled as _standalone_opt_ui
|
||||
|
||||
@@ -9949,16 +9949,16 @@ if _standalone_opt_ui():
|
||||
from lib.options.options_register import install_options_trading
|
||||
|
||||
install_options_trading(app, _REPO_ROOT, app_module=sys.modules[__name__])
|
||||
|
||||
from lib.options.options_review_register import install_options_review
|
||||
|
||||
install_options_review(app, _REPO_ROOT, app_module=sys.modules[__name__])
|
||||
else:
|
||||
print(
|
||||
"[boot] STANDALONE_OPTIONS_UI=false → skip options/review UI (hedge-only)",
|
||||
"[boot] STANDALONE_OPTIONS_UI=false → skip standalone options trading UI",
|
||||
flush=True,
|
||||
)
|
||||
|
||||
from lib.options.options_review_register import install_options_review
|
||||
|
||||
install_options_review(app, _REPO_ROOT, app_module=sys.modules[__name__])
|
||||
|
||||
from lib.hedge_plan.hedge_plan_register import install_hedge_plan
|
||||
|
||||
install_hedge_plan(app, _REPO_ROOT, app_module=sys.modules[__name__])
|
||||
|
||||
Reference in New Issue
Block a user