Commit Graph

2 Commits

Author SHA1 Message Date
David Tseng d1931c308f fix: add raw_output to signal processing fallback
Preserves the LLM's natural language output in the fallback JSON
when JSON parsing fails, for debugging and manual review.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 13:53:17 +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