Skip to content

Commit

Permalink
fix bug for binance_spot_grid_strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
lin committed Dec 19, 2020
1 parent 4d8a2f3 commit b88fc01
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def process_timer_event(self, event: Event):
self.buy_orders.extend(buy_orders_ids)
self.sell_orders.extend(sell_orders_ids)

else:
elif len(self.buy_orders) == 0 or len(self.sell_orders) == 0:
# 网格两边的数量不对等.
self.cancel_all()

Expand Down

0 comments on commit b88fc01

Please sign in to comment.