From f9c499765849b02ca962027ac1ca8b7ec1ca3dbb Mon Sep 17 00:00:00 2001 From: yanweidong Date: Mon, 7 Sep 2026 19:54:49 +0800 Subject: [PATCH] fix bug --- py-client/strategy/trend/positions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/py-client/strategy/trend/positions.py b/py-client/strategy/trend/positions.py index 3169d83..838a5d3 100644 --- a/py-client/strategy/trend/positions.py +++ b/py-client/strategy/trend/positions.py @@ -149,7 +149,7 @@ def handle_profit( if not runtime.orders.place(runtime.client, request): return TradeDecision(False, "止盈委托失败") - return TradeDecision(True, f"卖出 {volume} 股,订单={order_id}") + return TradeDecision(True, f"[止盈卖出] {volume} 股,订单={order_id}") def handle_loss( @@ -193,7 +193,7 @@ def handle_loss( return TradeDecision(False, "补仓订单委托失败") runtime.add_watch.forget(position.stock_code) - return TradeDecision(True, f"买入 {volume} 股,订单={order_id}", amount) + return TradeDecision(True, f"[补仓买入] {volume} 股,订单={order_id}", amount) def _position_key(runtime: Runtime, code: str) -> str: