From e6cfc9a1f284262103613be0bebd52bbce9cb6cf Mon Sep 17 00:00:00 2001 From: fibonacci998 Date: Fri, 19 Apr 2024 15:14:24 +0700 Subject: [PATCH] fix: clear event for each loop; remove sleep debug in amm_arb --- hummingbot/strategy/amm_arb/amm_arb.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hummingbot/strategy/amm_arb/amm_arb.py b/hummingbot/strategy/amm_arb/amm_arb.py index 41da5ce119..cd830f8c4f 100644 --- a/hummingbot/strategy/amm_arb/amm_arb.py +++ b/hummingbot/strategy/amm_arb/amm_arb.py @@ -324,6 +324,8 @@ async def execute_arb_proposals(self, arb_proposals: List[ArbProposal]): self.log_with_clock(logging.INFO, f"Placing {side} order for {arb_side.amount} {arb_side.market_info.base_asset} " f"at {arb_side.market_info.market.display_name} at {arb_side.order_price} price") + arb_side.completed_event.clear() + arb_side.failed_event.clear() order_id: str = await self.place_arb_order( arb_side.market_info, @@ -337,7 +339,6 @@ async def execute_arb_proposals(self, arb_proposals: List[ArbProposal]): }) if not self._concurrent_orders_submission: - await asyncio.sleep(6) await arb_side.completed_event.wait() if arb_side.is_failed: self.log_with_clock(logging.ERROR,