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