Commit Graph

3 Commits

Author SHA1 Message Date
Daniel Shashko 5028018624 fix: add missing json import, complete risk_manager rename, use curr_date param
- Add missing import json at module level in bright_data.py (removed inline but never added to top)
- Rename reflect_portfolio_manager -> reflect_risk_manager in reflection.py to match trading_graph.py
- Use curr_date parameter in get_social_sentiment search query
- Remove unused company_name variable in social_media_analyst.py
2026-03-31 01:47:51 +03:00
Daniel Shashko 1bdbc7918f fix: address review feedback
- Move json import to module level instead of inline
- Log content fetch errors instead of swallowing silently
- Use split-based vendor check for robustness with comma-separated configs
2026-03-31 01:47:51 +03:00
Daniel Shashko 99abdba844 feat: add Bright Data as a third data vendor (SERP API + Web Unlocker)
Adds Bright Data as a new data vendor for news, sentiment, and insider
transaction data. Uses SERP API for Google search results and Web
Unlocker for full article content in clean markdown format.

New features:
- bright_data vendor for get_news, get_global_news, get_insider_transactions
- New get_social_sentiment tool that scrapes Reddit, Twitter/X, and forums
  for actual retail investor discussions (Bright Data exclusive)
- Social media analyst agent gains get_social_sentiment when bright_data
  is configured, giving it real social data for the first time
- Automatic fallback on rate limits, same as Alpha Vantage

Usage:
  export BRIGHT_DATA_API_KEY=your_key
  config["data_vendors"]["news_data"] = "bright_data"

No changes to agent prompts, graph structure, or debate logic.
Drop-in vendor, zero breaking changes.
2026-03-31 01:47:51 +03:00