diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-04-02 16:02:59 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-04-02 16:02:59 +0900 |
| commit | c0496919e91f110aeed7bc47b24ebc3b8348ee81 (patch) | |
| tree | 01325253c4408a8637098161791f06b2f2a5b726 /services/strategy-engine/src/strategy_engine/config.py | |
| parent | bf4afbc0a3cc4e847ef01840365fd6a6ae9c142f (diff) | |
fix: remove SecretStr field overrides in service subclass configs
StrategyConfig and NewsCollectorConfig redefined anthropic_api_key and
finnhub_api_key as plain str, shadowing the parent SecretStr type. This
caused AttributeError at runtime when .get_secret_value() was called.
The fields are already inherited from Settings — no need to redeclare.
Diffstat (limited to 'services/strategy-engine/src/strategy_engine/config.py')
| -rw-r--r-- | services/strategy-engine/src/strategy_engine/config.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/services/strategy-engine/src/strategy_engine/config.py b/services/strategy-engine/src/strategy_engine/config.py index 15f8588..9fd9c49 100644 --- a/services/strategy-engine/src/strategy_engine/config.py +++ b/services/strategy-engine/src/strategy_engine/config.py @@ -7,7 +7,3 @@ class StrategyConfig(Settings): symbols: list[str] = ["AAPL", "MSFT", "GOOGL", "AMZN", "TSLA"] timeframes: list[str] = ["1m"] strategy_params: dict = {} - selector_final_time: str = "15:30" - selector_max_picks: int = 3 - anthropic_api_key: str = "" - anthropic_model: str = "claude-sonnet-4-20250514" |
