- Add raw_output to signal processing fallback JSON for debugging
- Add save_pm_report_to_disk and display_pm_report with _ensure_str helper
- Fix welcome.txt path to use Path(__file__).parent
- Narrow except blocks to requests.exceptions.RequestException
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Add report saving and display for Polymarket analysis (save_pm_report_to_disk,
display_pm_report) with organized subfolders matching stock analysis pattern
- Add _ensure_str() helper to handle content that may be a list
- Narrow except Exception to requests.exceptions.RequestException in polymarket.py
- Fix welcome.txt path to use Path(__file__).parent instead of relative path
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add tradingagents/prediction_market/ as a parallel module adapting the
multi-agent framework for Polymarket binary prediction markets.
Key components:
- 4 analysts: Event, Odds, Information, Sentiment
- YES/NO researchers with structured debate
- PM Trader with Kelly Criterion position sizing
- Risk debate team (aggressive/conservative/neutral)
- Polymarket REST API client (Gamma + CLOB, read-only)
- LangGraph state machine mirroring existing stock flow
- BM25 memory system for reflection/learning
- CLI integration with analysis mode selection and URL resolution
Analysis-only scope - no order placement in v1.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>