From 380b8c079a9f92ece128ecccdff6c62fdef8f3b2 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Wed, 1 Apr 2026 16:14:11 +0900 Subject: feat(strategy): add warmup_period to BaseStrategy and YAML config loading --- services/strategy-engine/strategies/grid_strategy.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'services/strategy-engine/strategies/grid_strategy.py') diff --git a/services/strategy-engine/strategies/grid_strategy.py b/services/strategy-engine/strategies/grid_strategy.py index f669f09..78e2703 100644 --- a/services/strategy-engine/strategies/grid_strategy.py +++ b/services/strategy-engine/strategies/grid_strategy.py @@ -18,6 +18,10 @@ class GridStrategy(BaseStrategy): self._grid_levels: list[float] = [] self._last_zone: Optional[int] = None + @property + def warmup_period(self) -> int: + return 2 + def configure(self, params: dict) -> None: self._lower_price = float(params["lower_price"]) self._upper_price = float(params["upper_price"]) -- cgit v1.2.3