09/16/2026
👋 Hello builders,
I got tired of watching "AI stock analyst" demos fall apart on the first weird prompt, so I built one.
Meet the Stock Research Agent API, a multi-agent stock research system for NSE (Indian) equities, built with CrewAI + Groq + FastAPI, now with a Streamlit dashboard on top.
Ask it a plain-English question. Get back a structured, validated response every time. never a stack trace, never a made-up answer.
Here's what's under the hood 👇
🗣️ Understands natural language - "should I buy TCS?", "compare Infosys and Wipro", "give me some momentum stocks." A dedicated intent classifier figures out exactly what you're asking for before anything else runs.
🔎 Screening mode - no specific stock in mind? Ask for "oversold banking stocks" or "top gainers today." It scans a candidate universe, scores it with pure deterministic math (zero LLM guesswork in the ranking), and runs full analysis only on the top matches.
🧑💼 Three specialist agents, one sequential pipeline - a Market Data Analyst pulls live price and technical indicators, a News Sentiment Analyst reads recent headlines, and a Recommendation Strategist synthesizes both into a single BUY, SELL, or HOLD call with a target price and stop-loss.
📊 100% free data - price, volume, RSI, moving averages, MACD, and news headlines, all from Yahoo Finance. No paid market data API required.
🤷 Honest when it doesn't know something - ask it about the weather and it tells you straight: "I don't have that, I'm only trained on stock market data." That path has zero tools exposed to it, so it's structurally incapable of faking real-time data it doesn't have.
🧱 Schema-validated end to end - every agent output and API response is a validated data model. No fragile string-parsing, no silent failures.
🩹 Graceful degradation - one bad ticker or one flaky data call only degrades that part of the answer, never the whole request.
⚡ Runs entirely on Groq's free tier - fast open-weight models, zero inference cost to run.
Streamlit dashboard, REST API which can then be integrated with any frontend client- type a query, get a styled results table, sentiment breakdowns, and one-click CSV export.
This has been an exercise in making agentic AI systems actually dependable, not just impressive in a demo.
👇 GitHub repo link is in the comment - feedback, concerns, and PRs all very welcome!