- 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>
Save analysis results to disk with organized subfolders:
1_analysts/, 2_research/, 3_trading/, 4_risk/, 5_decision/
plus a consolidated complete_report.md.
Prompt user to save and display full report after analysis completes,
matching the existing stock analysis flow.
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>