StockLabs
Trade Fearlessly. Learn Instantly. Master the Mark
Created on 24th January 2026
•
StockLabs
Trade Fearlessly. Learn Instantly. Master the Mark
The problem StockLabs solves
The Problem It Solves
The platform addresses the "Financial Literacy Gap" and the "Fear of Entry" that paralyzes new investors. Most beginners treat the stock market like a casino because:
High Financial Risk: Learning with real money often leads to painful, discouraging losses.
Complexity Barrier: Financial data, charts, and jargon (like "P/E Ratio" or "Volatility") are overwhelming and difficult to decipher without expert help.
Lack of Feedback: Traditional trading platforms allow you to buy/sell but never explain why a trade was a success or failure, leaving users to guess.
What People Can Use It For
Risk-Free Trading Simulation: Users can practice buying and selling stocks using ₹1,00,000 in virtual funds. This allows them to experiment with order types like Stop-Loss and Take-Profit to learn discipline without the anxiety of losing actual capital.
Personalized AI Mentorship: People can use the "Study Buddy" Chatbot to ask "stupid questions" they might be afraid to ask a human advisor. The AI explains complex terms using simple analogies (e.g., comparing stock market concepts to everyday life).
Stress-Testing Portfolios: Users can use the "What-If" Scenario Simulator to see how their specific investments would react to major economic events, such as a "Pandemic" or "Inflation Spike," helping them understand risk management before a crisis actually happens.
Instant Market Analysis: Instead of spending hours reading technical charts, users can get a "Plain English" AI analysis of any stock’s trends, sentiment, and volatility with one click.
How It Makes Existing Tasks Easier & Safer
Safer Experimentation: "Make mistakes here so you don't make them in the real market.". By providing a sandbox environment, it removes the financial consequence of failure, encouraging "Active Learning" through trial and error.
Easier Decision Making: It democratizes expert-level analysis. The AI Stock Insights feature automatically synthesizes complex market data into actionable summaries, saving users from having to manually cross-reference news, charts, and financial reports.
Gamified Progress: The Learning Hub transforms the tedious task of studying finance into a gamified experience, tracking progress and rewarding users for mastering concepts, which keeps them motivated compared to reading dry textbooks.
Challenges we ran into
Challenge 1: The "Cloud Block" & 500 Errors on Deployment
The Hurdle: While the application worked perfectly on localhost, deploying it to a cloud provider (Render/Vercel) caused the Stock API to crash with 500 Internal Server Errors. We discovered that Yahoo Finance and other free APIs often block requests coming from known data center IP addresses (like AWS or Google Cloud) to prevent scraping.
How We Got Over It: We implemented a robust multi-layered fallback strategy in our StockService.
Primary Layer: The system first attempts to fetch live data via Upstox or Yahoo Finance.
Error Handling: We wrapped these calls in specific try-catch blocks that detect network rejections (403/429 errors).
Fallback Layer: If the live API rejects the cloud server's request, the system automatically swaps to a Mock Data Generator. This ensures that judges and users never see a "Crashing" app—they just see simulated data if the live feed is blocked, maintaining a smooth UX.
Challenge 2: Hallucinations in Financial AI Advice
The Hurdle: Early versions of the "Study Buddy" chatbot would sometimes give generic or overly complex answers, or worse, hallucinate specific stock price predictions that were factually wrong. In finance, accuracy is critical, and we couldn't have the AI acting like a reckless gambler.
How We Got Over It: We refined the System Prompts in aiService.js to enforce strict persona boundaries.
Persona Engineering: We explicitly instructed the model: "You are a helpful financial advisor explaining stock market information in simple language... Do not provide financial advice or speculation."
Context Injection: Instead of letting the AI guess, we programmatically inject the actual real-time stock data (Price, P/E, High/Low) directly into the prompt before the AI generates an answer. This "Grounding" technique ensures the AI explains real data rather than inventing numbers.
Challenge 3: Translating "Text" Scenarios into "Math" Impacts
The Hurdle: Building the "What-If" Scenario Simulator was difficult because we needed to translate vague user text (e.g., "A global pandemic hits") into precise percentage changes for a user's specific portfolio. Traditional code can't easily understand how a "pandemic" affects "Airline Stocks" vs. "Pharma Stocks."
How We Got Over It: We leveraged the Reasoning Capabilities of Llama 3 via Groq.
We created a specific function simulateScenario that feeds the user's entire portfolio composition (JSON) along with the text scenario to the AI.
We instructed the AI to act as a correlation engine, returning only a JSON object with estimated percentage shifts based on historical economic theory. This turned a complex mathematical problem into a semantic language task, allowing for infinite simulation possibilities without writing thousands of if-else rules.
Tracks Applied (1)
Duality AI — Offroad Semantic Scene Segmentation
DUALITY
Technologies used