fix: hide hub close/entrust controls for intraday discipline profile

Expose intraday_discipline via hub meta and block manual close/tpsl APIs; Gate instance card no longer shows 全平/平仓/委托.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-06 02:26:22 +08:00
parent a268a93027
commit 4904a86e03
8 changed files with 119 additions and 22 deletions
+2
View File
@@ -178,6 +178,7 @@ from lib.trade.entry_model_lib import (
build_intraday_entry_reason_options,
build_trend_div_entry_reason_options,
enrich_entry_model_display,
hub_meta_entry_context,
migrate_entry_model_columns,
order_entry_template_context,
parse_manual_order_style_fields,
@@ -9687,6 +9688,7 @@ def _hub_meta_bundle():
"btc_leverage": BTC_LEVERAGE,
"alt_leverage": ALT_LEVERAGE,
"trade_policy": trade_policy_template_context(TRADE_POLICY),
**hub_meta_entry_context(TRADE_POLICY),
}