Skip to content

Commit

Permalink
CashValidator let order pass for unknown account type
Browse files Browse the repository at this point in the history
  • Loading branch information
Cuizi7 committed Dec 20, 2018
1 parent 8261987 commit 6221d8d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def can_submit_order(self, order, account=None):
elif account.type == DEFAULT_ACCOUNT_TYPE.FUTURE.name:
return self._future_validator(account, order)
else:
raise NotImplementedError
return True

def can_cancel_order(self, order, account=None):
return True

0 comments on commit 6221d8d

Please sign in to comment.