summaryrefslogtreecommitdiff
path: root/services/strategy-engine/strategies/grid_strategy.py
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-04-01 16:14:11 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-04-01 16:14:11 +0900
commit380b8c079a9f92ece128ecccdff6c62fdef8f3b2 (patch)
treec56414eab6c0ddc4118cb7c6535274b1224ca031 /services/strategy-engine/strategies/grid_strategy.py
parentc3560fdd637c4f034cac4f7371aeed65d018bc91 (diff)
feat(strategy): add warmup_period to BaseStrategy and YAML config loading
Diffstat (limited to 'services/strategy-engine/strategies/grid_strategy.py')
-rw-r--r--services/strategy-engine/strategies/grid_strategy.py4
1 files changed, 4 insertions, 0 deletions
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"])