diff --git a/zipline/finance/order.py b/zipline/finance/order.py index 39e3996a..d326f206 100644 --- a/zipline/finance/order.py +++ b/zipline/finance/order.py @@ -58,7 +58,7 @@ class Order(object): assert isinstance(sid, Asset) # get a string representation of the uuid. - self.id = id or self.make_id() + self.id = self.make_id() if id is None else id self.dt = dt self.reason = None self.created = dt