From b82ad313467a3c2e6c75a849bf830af27bd4dabc Mon Sep 17 00:00:00 2001 From: m5l14i11 Date: Sat, 14 Sep 2024 17:55:12 +0300 Subject: [PATCH] upd --- risk/_actor.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/risk/_actor.py b/risk/_actor.py index dce7f04b..aff56242 100644 --- a/risk/_actor.py +++ b/risk/_actor.py @@ -123,7 +123,7 @@ async def _trail_position(self, event: TrailEvent): async with self._lock: async def handle_trail(position: Position, risk_bar: OHLCV): - logger.info("Trail event") + logger.info(f"Trail event for side: {position.side}, bar: {risk_bar}") ta = await self.ask(TA(self.symbol, self.timeframe, risk_bar)) return position.trail(ta) @@ -214,7 +214,6 @@ async def _process_market( self.anomaly_threshold *= DYNAMIC_THRESHOLD_MULTIPLIER self.max_bars *= DYNAMIC_THRESHOLD_MULTIPLIER self.consc_anomaly_counter = 1 - await asyncio.sleep(0.00001) continue else: self.anomaly_threshold = DEFAULT_ANOMALY_THRESHOLD