Commit Graph

3 Commits

Author SHA1 Message Date
David Tseng 30ec613264 fix: address remaining PR review feedback
- 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>
2026-03-23 13:52:54 +08:00
David Tseng 05dca350fb fix: address PR review feedback
- 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>
2026-03-23 13:19:59 +08:00
David Tseng 4a11b4bf55 feat: add Polymarket prediction market analysis module
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>
2026-03-23 12:49:23 +08:00