fix print
This commit is contained in:
@@ -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}")
|
||||||
|
|||||||
Reference in New Issue
Block a user