Inspiration

Financial literacy is often hindered by two things: the fear of losing real capital and the "patience gap." In the real world, you don't see the impact of a good (or bad) financial decision for decades. We built Stock Sense to bridge this gap. We wanted to create a "time machine" for wealth—a place where beginners can witness the life-altering power of compounding and market cycles in a matter of days, rather than decades, all within a safe, India-focused ecosystem.

What it does

Stock Sense is a comprehensive, gamified investment simulator designed to take users from financial beginners to confident strategists through an immersive "learn-by-doing" approach.

1. The High-Speed Simulation Engine

  • Time Compression: Our unique mechanic scales time so that 1 real-world day equals 1 simulated year. This allows users to experience a full "investment lifetime" in just a couple of weeks.
  • Live Market Dynamics: Unlike traditional paper trading apps, values in Stock Sense are constantly changing. The market never sleeps; prices fluctuate based on simulated economic volatility, requiring users to monitor their portfolios actively.
  • The ₹1,00,000 Start: Every user is granted ₹1,00,000 in virtual capital to begin their journey, allowing for high-stakes learning with zero real-world risk.

2. Deep Asset Diversification

The simulator features a massive library of 85+ distinct assets, allowing users to test complex diversification strategies:

  • 50 Individual Stocks: Ranging from high-growth tech to stable blue-chip companies, each categorized by risk (Low, Medium, High).
  • 30 Mutual Funds: Professionally "managed" virtual funds for those who prefer a passive approach.
  • 5 Index Funds: Low-cost options to track the broader movement of the simulated economy.

3. The Educational Ecosystem

  • AI Financial Coach: A built-in personal guide that answers complex questions like "What is an SIP?" or "How do I manage risk in my portfolio?" in simple, jargon-free language.
  • Micro-Lessons: A structured curriculum of "5-minute reads" (e.g., "What is Money?", "The Power of Compounding") that users can complete to earn progress points.
  • Weekly Challenges: Objective-based missions like "Build a Balanced Portfolio" (investing in 5+ sectors) or "Beat Inflation" (earning returns >6%).
  • Community Space: A "Safe Learning Space" where users share their journey, ask questions, and celebrate "virtual profits" without the toxicity of typical financial forums.

How we built it

We leveraged Lovable to build a robust, responsive platform that feels like a professional-grade trading terminal.

  • Frontend Architecture: Developed using React and Tailwind CSS for a clean, high-performance UI that updates asset prices in real-time without lagging.
  • State Management: We used complex TypeScript logic to handle the state of 85+ assets and the "1 day = 1 year" time-jump, ensuring that data persists accurately as the user progresses.
  • Data Visualization: Custom charting components were integrated to generate the End-of-Simulation Report, which features a high-fidelity growth graph mapping the user's net worth from day one.

Challenges we ran into

The core challenge was the Simulation Logic Engine. In our early builds:

  1. The "Dead" Market: Stock values were stagnant or updated too slowly, failing to capture the urgency of a real market.
  2. The Compounding Crisis: Initially, our math was linear. If a stock grew by 5%, it didn't account for the growth of the previous year's gains. In a simulator where days represent years, this made the growth feel "fake" and unrewarding.
  3. The Solution: We completely refactored the backend to implement exponential compounding formulas. We ensured that values change constantly and that every single rupee gained is factored into the next day's (year's) growth, creating a realistic and satisfying "hockey stick" growth curve for successful investors.

Accomplishments that we're proud of

  • Successful Math Integration: Fixing the compounding logic was a major milestone. It turned the app from a simple game into a mathematically accurate financial tool.
  • Asset Depth: Seamlessly managing 85+ assets (Stocks, Mutual Funds, and Indices) with live-updating prices while keeping the interface beginner-friendly.
  • The Report System: Creating a visual report that turns "years" of simulated data into a single, beautiful growth graph that users can actually learn from.

What we learned

We learned that precision is paramount in financial applications. Even a 0.1% error in a compounding formula can lead to massive discrepancies over a simulated decade. We also learned how to use Lovable to rapidly prototype complex logic—allowing us to move from a "broken" simulator to a fully functional, multi-asset ecosystem in record time.

What's next for Stock Sense

  • Global Market Integration: We are expanding beyond the Indian market to include International Stocks and Indices (US, Europe, and Asia). This will teach users about currency risks and global diversification.
  • Advanced Analytics: Introducing "Alpha" and "Beta" metrics to help users understand exactly how much they are outperforming (or underperforming) the market.
  • Leaderboards & Social Trading: Adding the ability to follow the "top-performing" learners and see their portfolio allocations in real-time.

Built With

Share this project:

Updates