Commit Graph

5 Commits

Author SHA1 Message Date
Clayton Brown b6c99e1dde feat(034): add Polymarket prediction market signals
Fetch crowd-sourced probability estimates from Polymarket's public
Gamma API and inject them as context into fundamentals, sentiment,
and news analyst prompts.

- New tradingagents/signals/polymarket.py module
- Filter: >=40% probability, >=100K USD volume, financially relevant keywords
- Categorize: Fed/Rates, Economy, Trade, Regulation, Corporate, Crypto, Energy, Tech, Macro
- Config: polymarket_enabled (default True) in default_config.py
- CLI: --polymarket/--no-polymarket flags on analyze command
- State: polymarket_context field in AgentState
- 30 unit tests and integration tests
- Polymarket section in README
2026-04-21 16:38:36 +10:00
Yijia-Xiao eec6ca4b53 fix: initialize all debate state fields in propagation.py
InvestDebateState was missing bull_history, bear_history, judge_decision.
RiskDebateState was missing aggressive_history, conservative_history,
neutral_history, latest_speaker, judge_decision. This caused KeyError
in _log_state() and reflection, especially with edge-case config values.
2026-03-15 17:54:32 +00:00
Yijia Xiao 54cdb146d0
feat: add footer statistics tracking with LangChain callbacks
- Add StatsCallbackHandler for tracking LLM calls, tool calls, and tokens
- Integrate callbacks into TradingAgentsGraph and all LLM clients
- Dynamic agent/report counts based on selected analysts
- Fix report completion counting (tied to agent completion)
2026-02-03 22:27:20 +00:00
Yijia Xiao 50961b2477
refactor: rename risky/safe agents to aggressive/conservative 2026-02-03 22:27:20 +00:00
Yijia-Xiao cc97cb6d5d chore(release): v0.1.0 – initial public release of TradingAgents 2025-06-05 04:27:57 -07:00