Skip to content

Commit

Permalink
CoinZoom: Add balance check on order update
Browse files Browse the repository at this point in the history
  • Loading branch information
TheHolyRoger committed Apr 2, 2021
1 parent 9cf4d70 commit a154b79
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,7 @@ def _process_order_message(self, order_msg: Dict[str, Any]):

if updated:
safe_ensure_future(self._trigger_order_fill(tracked_order, order_msg))
safe_ensure_future(self._update_balances())
elif tracked_order.is_cancelled:
self.logger().info(f"Successfully cancelled order {tracked_order.client_order_id}.")
self.stop_tracking_order(tracked_order.client_order_id)
Expand Down

0 comments on commit a154b79

Please sign in to comment.