Skip to content
StockEx

StockEx

Where AI insight meets market foresight

Created on 25th January 2026

•

StockEx

StockEx

Where AI insight meets market foresight

The problem StockEx solves

The Problem It Solves

StockEx democratizes professional-grade stock analysis by solving critical challenges faced by individual investors in the Indian market:

🎯 Making Sense of Information Overload

With thousands of stocks on NSE/BSE and endless news streams, investors struggle to analyze data effectively. StockEx consolidates technical charts, fundamental metrics, news sentiment, and sector trends into one unified AI-powered recommendation.

💰 Reducing Expensive Advisory Costs

Professional investment advisory services can cost ₹10,000-50,000+ annually. StockEx provides institutional-quality analysis powered by 8 specialized AI agents at a fraction of the cost—making expert-level insights accessible to everyone.

⚖️ Eliminating Single-Perspective Bias

Most investors rely on either technical OR fundamental analysis. StockEx's multi-agent system evaluates stocks from 8 different perspectives simultaneously—technical patterns, financial health, market sentiment, ESG factors, momentum signals, sector dynamics, risk metrics, and valuation—ensuring well-rounded decisions.

⏱️ Saving Hours of Research Time

What takes analysts hours—screening financial statements, calculating ratios, analyzing charts, reading news—StockEx does in seconds. Get comprehensive reports instantly for any NSE/BSE stock.

🎚️ Personalizing Investment Strategy

Not all investors think alike. Day traders need different insights than long-term value investors. StockEx lets you customize agent weights to match your investment style—prioritize momentum for trading or fundamentals for value investing.

🌐 Breaking Language Barriers

With Hindi support alongside English, StockEx makes sophisticated investment analysis accessible to millions of non-English speakers in India, truly democratizing financial literacy.

👥 Building an Informed Community

The integrated discussion forum and portfolio tracking help investors learn from each other, monitor their investments, and make collaborative decisions—moving beyond isolated, emotion-driven trading.

🔒 Ensuring Security & Privacy

With Google OAuth authentication and Firebase security, your investment data and portfolio information remain protected while you get personalized insights based on your holdings.


Perfect for: First-time investors learning the ropes, experienced traders seeking validation, working professionals without time for deep research, NRIs tracking Indian markets from abroad, and anyone looking to make data-driven investment decisions in the Indian stock market.

Real-World Impact: Whether you're deciding between mutual funds or individual stocks, evaluating a hot IPO, rebalancing your portfolio, or simply learning about investing—StockEx provides the multi-dimensional analysis that previously only institutional investors could access.

Challenges we ran into

Challenges I Ran Into

Building StockEx presented several technical and data-related hurdles that required creative problem-solving and persistence:

📊 Finding Reliable Indian Market Data Sources

The Challenge: Unlike US markets where Yahoo Finance and Alpha Vantage provide comprehensive APIs, Indian stock data (NSE/BSE) is fragmented and inconsistent. Official NSE APIs require lengthy approvals, and free alternatives often have rate limits or missing data.

The Solution: After testing multiple libraries ('nsepy', 'nsetools', 'jugaad-data'), I settled on a hybrid approach:

  • Used 'yfinance' with '.NS' suffix for NSE stocks (e.g., 'RELIANCE.NS')
  • Implemented fallback mechanisms to handle data gaps
  • Built custom scrapers for real-time sentiment data from financial news sites
  • Added caching layers to reduce API calls and improve performance

Key Learning: Always have fallback data sources—if one API fails, the system gracefully degrades rather than crashes.


🤖 Selecting the Right AI Model for Financial Analysis

The Challenge: Initially explored fine-tuning models from Hugging Face (FinBERT, RoBERTa-financial) for sentiment analysis, but faced issues:

  • Most models were trained on US financial data, not Indian market terminology
  • Fine-tuning required expensive GPU resources and labeled Indian stock data
  • Deployment size constraints on Hugging Face Spaces

The Solution:

  • Switched to Google Gemini API for its superior reasoning capabilities and context understanding
  • Designed specialized system prompts for each of the 8 AI agents (Technical Analyst, Fundamental Analyst, etc.)
  • Used prompt engineering to adapt the model to Indian market nuances (NSE/BSE terminology, Indian company naming conventions)
  • Implemented agent coordination logic to synthesize recommendations from multiple perspectives

Why It Worked: Gemini's large context window allowed feeding comprehensive stock data, and its reasoning abilities produced more nuanced analysis than fine-tuned smaller models.


🔐 Firebase Authentication Integration with FastAPI

The Challenge: Integrating Google OAuth through Firebase with a FastAPI backend and React frontend created several issues:

  • CORS errors between frontend and backend
  • JWT token validation and refresh logic
  • Securely storing Firebase service account credentials in Hugging Face Spaces

The Solution:

  • Implemented proper CORS middleware in FastAPI with specific origins
  • Created a custom JWT middleware to verify Firebase tokens on protected routes
  • Used Hugging Face Spaces Secrets to securely store 'FIREBASE_SERVICE_ACCOUNT' JSON
  • Built a token refresh mechanism in the React frontend to maintain sessions

📈 Real-Time Chart Rendering Performance

The Challenge: Rendering interactive candlestick charts with multiple technical indicators (RSI, MACD, Bollinger Bands) caused significant lag, especially on mobile devices.

The Solution:

  • Switched from heavy charting libraries to lightweight 'recharts'
  • Implemented data downsampling for longer time periods (show weekly data instead of daily for 1-year view)
  • Used React 'memo' and 'useMemo' to prevent unnecessary re-renders
  • Lazy-loaded chart components only when users click on the "Charts" tab

🌐 Multi-Language Support (English & Hindi)

The Challenge: Supporting Hindi required more than just UI translation:

  • Stock names needed transliteration (Reliance Industries → रिलायंस इंडस्ट्रीज)
  • AI responses needed to be in Hindi when language was switched
  • Number formatting differs in Indian numbering system (lakhs/crores vs millions/billions)

The Solution:

  • Used 'i18next' for UI translations
  • Modified AI prompts to respond in Hindi when user language preference is set
  • Created custom number formatting utilities for Indian numbering (₹1,50,000 vs ₹150,000)
  • Stored language preference in Firebase user profiles

💾 Managing Agent Recommendations Consistency

The Challenge: With 8 different AI agents analyzing the same stock, recommendations sometimes conflicted wildly (one agent says "Strong Buy", another says "Sell"), confusing users.

The Solution:

  • Implemented a weighted voting system where users can adjust agent importance
  • Created a "consensus score" algorithm that considers confidence levels from each agent
  • Added transparency by showing individual agent reasoning, not just final recommendation
  • Built a conflict resolution system that flags when agents strongly disagree (signals high uncertainty)

Discussion

Builders also viewed

See more projects on Devfolio