Skip to content

Commit

Permalink
remove assert delete_order.kind == LIMIT_ORDER
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuji-hashimoto0110 authored and ryuji-hashimoto0110 committed Apr 7, 2024
1 parent c3ce58e commit f7505cd
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pams/order_book.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ def _check_expired_orders(self) -> List[ExpirationLog]:
return logs
# TODO: think better sorting in the following 3 lines
for delete_order in delete_orders:
assert delete_order.kind == LIMIT_ORDER
assert delete_order.placed_at + delete_order.ttl + 1 == self.time
log: ExpirationLog = ExpirationLog(
order_id=delete_order.order_id,
Expand Down

0 comments on commit f7505cd

Please sign in to comment.