Inspiration
Traditional trading decisions rely on limited signals. We wanted to combine prediction markets (real-money sentiment), news, and video content into one system. Prediction markets like Polymarket reflect real-money sentiment, while news and video capture broader narratives. MarketMinds unifies these signals with AI to produce actionable trading insights.
What it does
MarketMinds is a multi-agent system that analyzes market sentiment for any stock ticker or company. It:
- Gambler Agent: Analyzes prediction market odds from Polymarket to gauge real-money sentiment
- Gossip Agent: Scrapes and analyzes news headlines from Google News RSS
- Video Gossip Agent: Extracts and analyzes sentiment from YouTube videos about the company
- Judge Agent: Uses Google Vertex AI (Gemini) to synthesize all signals and make BUY/SELL/HOLD decisions with reasoning
- Web Interface: Interactive FastAPI dashboard showing real-time analysis, sentiment scores, and historical price charts
The system provides a unified sentiment score, trade recommendation, confidence level, and key factors behind each decision.
How we built it
Built with Python and FastAPI:
- Backend Architecture: FastAPI server orchestrating asynchronous agent workflows with real-time progress tracking
- Gambler Agent: Integrates Polymarket's Gamma API and CLOB API to fetch prediction market odds and order book data
- Gossip Agent: Parses Google News RSS feeds and uses Vertex AI to extract sentiment from headlines
- Video Gossip Agent: Uses yt-dlp to download YouTube videos, extracts audio, and analyzes sentiment from video content
- Judge Agent: Leverages Google Vertex AI (Gemini 2.5 Flash Lite) to synthesize multiple data sources and generate trade decisions
- Frontend: Jinja2 templates with real-time updates via polling, interactive charts using SerpApi for historical price data
- APIs Integrated: Polymarket Gamma/CLOB, Google News RSS, Google Vertex AI, SerpApi, Airia API (company descriptions), YouTube (via yt-dlp)
The system handles errors gracefully, with fallbacks and mock responses when APIs are unavailable.
Challenges we ran into
- Polymarket API Complexity: The Gamma API structure required careful parsing of nested JSON, outcome tokens, and order book data
- Multi-Agent Coordination: Orchestrating asynchronous agents with proper error handling and progress tracking
- Video Processing: Downloading, extracting audio, and processing video content at scale while respecting rate limits
- API Rate Limiting: Managing rate limits across multiple APIs (Polymarket, SerpApi, YouTube) with delays and retries
- Vertex AI Integration: Setting up Google Cloud credentials, service accounts, and handling authentication
- Real-time Updates: Implementing a polling system for the frontend to show live progress without WebSockets
- Data Parsing: Handling inconsistent API response formats and edge cases (missing data, malformed JSON)
Accomplishments that we're proud of
- Working Multi-Agent System: Four specialized agents working together seamlessly
- Real-Time Analysis: End-to-end analysis in seconds, with live progress updates
- Robust Error Handling: Graceful degradation when APIs fail, ensuring the system remains functional
- Video Sentiment Analysis: Successfully extracting and analyzing sentiment from YouTube video content
- Clean Architecture: Modular design with clear separation of concerns, making it easy to add new agents
- Comprehensive Integration: Successfully integrated 6+ different APIs and services
- User-Friendly Interface: Intuitive web interface with real-time progress indicators and interactive charts
What we learned
- Multi-Agent Systems: Designing and orchestrating specialized agents that work together
- API Integration Best Practices: Handling rate limits, errors, and inconsistent response formats
- Asynchronous Programming: Using Python's asyncio for concurrent API calls and background tasks
- AI-Powered Decision Making: Using LLMs (Gemini) to synthesize multiple data sources into actionable insights
- Prediction Markets: Understanding how prediction markets reflect real-money sentiment differently from traditional news
- Video Processing: Working with yt-dlp, audio extraction, and processing multimedia content
- FastAPI Development: Building production-ready APIs with proper error handling, logging, and async support
What's next for MarketMinds
- Backtesting: Historical performance analysis to validate decision quality
- Portfolio Management: Track multiple positions and provide portfolio-level insights
- Real-Time Alerts: Push notifications for significant sentiment changes or trade opportunities
- Advanced ML Models: Fine-tune sentiment models on historical data for improved accuracy
- More Data Sources: Integrate social media (Twitter/X, Reddit), earnings calls transcripts, and SEC filings
- Risk Management: Add position sizing recommendations and risk-adjusted returns
- Mobile App: Native mobile app for on-the-go market analysis
- Paper Trading Integration: Connect to paper trading platforms to test strategies without real money
- Multi-Asset Support: Extend beyond stocks to cryptocurrencies, commodities, and forex
- Community Features: Allow users to share analyses and build a community around market sentiment
Log in or sign up for Devpost to join the conversation.