Skip to content

Commit

Permalink
fix logic bug in order.is_final
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricporter committed Apr 7, 2017
1 parent 25c67d8 commit 32de1c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rqalpha/model/order.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def frozen_price(self):
return self._frozen_price

def is_final(self):
return self._status in {
return self._status not in {
ORDER_STATUS.PENDING_NEW,
ORDER_STATUS.ACTIVE,
ORDER_STATUS.PENDING_CANCEL
Expand Down

0 comments on commit 32de1c5

Please sign in to comment.