add order to all_orders

This commit is contained in:
zhiyong 2025-05-21 14:56:26 +08:00
parent 87e7c7b45a
commit d2bbe3eb55

View File

@ -87,7 +87,6 @@ class PositionManager:
with self._lock:
order = LocalOrder(order_id, code, price, amount, direction, order_type, created_time=datetime.now())
self.pending_orders[order_id] = order
if (order_type == ORDER_TYPE_LIMIT):
self.all_orders.append(order)
logger.info(