fix print

This commit is contained in:
2026-09-18 10:07:06 +08:00
parent 7ce7914424
commit 892f6c3a81

View File

@@ -146,6 +146,12 @@ def handle_profit(
strategy_name=runtime.account_cfg.strategy, strategy_name=runtime.account_cfg.strategy,
) )
if not runtime.orders.place(runtime.client, request): 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(False, "止盈委托失败")
return TradeDecision(True, f"[止盈卖出] {volume} 股,订单={order_id}") return TradeDecision(True, f"[止盈卖出] {volume} 股,订单={order_id}")