fix: label trend breakeven handoff as 趋势回调 across four exchanges
Set order monitor and trade record source to trend pullback after handoff; unify hub and instance display; add migration script for legacy rows. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -60,6 +60,7 @@ from journal_chart_lib import (
|
||||
from hub_auth import request_allowed as hub_request_allowed
|
||||
from strategy_trade_labels import (
|
||||
STRATEGY_ENTRY_REASON_OPTIONS,
|
||||
apply_order_monitor_source_labels,
|
||||
handoff_trade_miss_reason,
|
||||
trade_record_monitor_type as resolve_trade_record_monitor_type,
|
||||
trend_plan_id_from_monitor_row,
|
||||
@@ -2311,7 +2312,7 @@ def enrich_order_item(raw_item, current_capital):
|
||||
item["breakeven_enabled"] = 0 if be is not None and int(be) == 0 else 1
|
||||
except Exception:
|
||||
item["breakeven_enabled"] = 1
|
||||
return item
|
||||
return apply_order_monitor_source_labels(item, default_manual="下单监控")
|
||||
|
||||
|
||||
def ensure_exchange_live_ready():
|
||||
|
||||
Reference in New Issue
Block a user