diff --git a/engine/order_manager.go b/engine/order_manager.go index 84fb9266a0a..58d0abac162 100644 --- a/engine/order_manager.go +++ b/engine/order_manager.go @@ -1062,7 +1062,7 @@ func (s *store) getByDetail(det *order.Detail) *order.Detail { exchangeOrders := s.Orders[strings.ToLower(det.Exchange)] for _, o := range exchangeOrders { if o.OrderID == det.OrderID { - return o + return o.CopyToPointer() } } return nil