summaryrefslogtreecommitdiff
path: root/services/strategy-engine/strategies/base.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/base.py
parentc3560fdd637c4f034cac4f7371aeed65d018bc91 (diff)
feat(strategy): add warmup_period to BaseStrategy and YAML config loading
Diffstat (limited to 'services/strategy-engine/strategies/base.py')
-rw-r--r--services/strategy-engine/strategies/base.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/services/strategy-engine/strategies/base.py b/services/strategy-engine/strategies/base.py
index 06101d0..fdf49ed 100644
--- a/services/strategy-engine/strategies/base.py
+++ b/services/strategy-engine/strategies/base.py
@@ -5,6 +5,11 @@ from shared.models import Candle, Signal
class BaseStrategy(ABC):
name: str = "base"
+ @property
+ @abstractmethod
+ def warmup_period(self) -> int:
+ pass
+
@abstractmethod
def on_candle(self, candle: Candle) -> Signal | None:
pass