1
This commit is contained in:
parent
83bb687a97
commit
a34b6ba448
|
|
@ -662,7 +662,8 @@ class PositionManager:
|
||||||
entry_order_id = order.get("orderId") if isinstance(order, dict) else None
|
entry_order_id = order.get("orderId") if isinstance(order, dict) else None
|
||||||
except Exception:
|
except Exception:
|
||||||
entry_order_id = None
|
entry_order_id = None
|
||||||
break
|
# 市价兜底下单后,结束追价循环
|
||||||
|
break
|
||||||
else:
|
else:
|
||||||
logger.info(f"{symbol} [智能入场] 限价超时,但偏离{drift_ratio*100:.2f}%>{max_drift_ratio*100:.2f}%,取消并放弃本次交易")
|
logger.info(f"{symbol} [智能入场] 限价超时,但偏离{drift_ratio*100:.2f}%>{max_drift_ratio*100:.2f}%,取消并放弃本次交易")
|
||||||
try:
|
try:
|
||||||
|
|
@ -670,7 +671,7 @@ class PositionManager:
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
self._pending_entry_orders.pop(symbol, None)
|
self._pending_entry_orders.pop(symbol, None)
|
||||||
return None
|
return None
|
||||||
|
|
||||||
# 震荡/不允许市价兜底:尝试追价(减小 offset -> 更靠近当前价),但不突破追价上限
|
# 震荡/不允许市价兜底:尝试追价(减小 offset -> 更靠近当前价),但不突破追价上限
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user