diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-04-01 17:11:10 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-04-01 17:11:10 +0900 |
| commit | 76f934f95d3b5cbb96765e7158976e4a4c879fa9 (patch) | |
| tree | 4dc93becf70e41e9df9cc7bb777c6defc3a85d30 /services/strategy-engine/strategies/base.py | |
| parent | adf5e96542ebd65c7d13ca5e9825071183b3ef13 (diff) | |
feat(strategy): add parameter validation to all strategies
Diffstat (limited to 'services/strategy-engine/strategies/base.py')
| -rw-r--r-- | services/strategy-engine/strategies/base.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/services/strategy-engine/strategies/base.py b/services/strategy-engine/strategies/base.py index fdf49ed..cf5e6e4 100644 --- a/services/strategy-engine/strategies/base.py +++ b/services/strategy-engine/strategies/base.py @@ -20,3 +20,7 @@ class BaseStrategy(ABC): def reset(self) -> None: pass + + def validate_params(self, params: dict) -> list[str]: + """Validate parameters and return list of error messages. Empty = valid.""" + return [] |
