From 892f6c3a81ef91086fdb04dfbb6672c470aeaa21 Mon Sep 17 00:00:00 2001 From: yanweidong Date: Fri, 18 Sep 2026 10:07:06 +0800 Subject: [PATCH] fix print --- py-client/strategy/trend/positions.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/py-client/strategy/trend/positions.py b/py-client/strategy/trend/positions.py index e73dfc1..0d0daf6 100644 --- a/py-client/strategy/trend/positions.py +++ b/py-client/strategy/trend/positions.py @@ -146,6 +146,12 @@ def handle_profit( strategy_name=runtime.account_cfg.strategy, ) if not runtime.orders.place(runtime.client, request): + log.info( + "[Position ✔ ] %s %s,止盈=%s", + position.stock_code, + position.stock_name, + pnl_rate, + ) return TradeDecision(False, "止盈委托失败") return TradeDecision(True, f"[止盈卖出] {volume} 股,订单={order_id}")