MAINT: Use 1 as the first bitmask value instead of 0.

To prevent a possible future bug where values like SELL | STOP | LIMIT
would accidentally match STOP | LIMIT.
This commit is contained in:
Eddie Hebert
2013-11-01 16:26:48 -04:00
parent 1575867b40
commit 4b023a852a
+4 -4
View File
@@ -23,10 +23,10 @@ from functools import partial
from zipline.protocol import DATASOURCE_TYPE
import zipline.utils.math_utils as zp_math
SELL = 0
BUY = 1
STOP = 1 << 1
LIMIT = 1 << 2
SELL = 1 << 0
BUY = 1 << 1
STOP = 1 << 2
LIMIT = 1 << 3
def check_order_triggers(order, event):