- Point Ollama to local instance via host.docker.internal, use gemma3 model - Remove Docker Ollama service (using host's Ollama instead) - Add company-name-to-ticker mapping (Apple→AAPL, Tesla→TSLA, etc.) for RSS articles - Lower signal thresholds for faster feedback with paper trading: - FinBERT confidence: 0.6→0.4, signal strength: 0.3→0.15 - News strategy: article_count 2→1, confidence 0.5→0.3, score ±0.3→±0.15 - Fix market data BarSet access bug (BarSet.__contains__ returns False incorrectly) - Fix market data SIP feed error by switching to IEX feed for free Alpaca accounts - Fix nginx proxy routing for /api/auth/* to api-gateway /auth/* - Add seed_sample_data script - Update tests for new thresholds and alpaca mock modules
15 lines
464 B
Python
15 lines
464 B
Python
"""Configuration for the sentiment analyzer service."""
|
|
|
|
from shared.config import BaseConfig
|
|
|
|
|
|
class SentimentAnalyzerConfig(BaseConfig):
|
|
"""Extends BaseConfig with sentiment-analysis-specific settings."""
|
|
|
|
finbert_model: str = "ProsusAI/finbert"
|
|
finbert_confidence_threshold: float = 0.4
|
|
ollama_model: str = "gemma3"
|
|
ollama_host: str = "http://localhost:11434"
|
|
max_content_length: int = 512
|
|
|
|
model_config = {"env_prefix": "TRADING_"}
|