Skip to content
Stack up

Stack up

Simulate the Markets. Synthesize with AI.

Created on 13th June 2026

•

Stack up

Stack up

Simulate the Markets. Synthesize with AI.

The problem Stack up solves

Everyday retail investors face a massive barrier of information overload when evaluating stock portfolios. Raw financial data, complex compounding growth metrics like CAGR, and mathematical volatility formulas (such as standard deviation of daily returns calculated in risk.py ) are highly technical and intimidating. While traditional stock-screening terminals offer columns of raw numbers or confusing charts, they fail to provide clear, contextual explanations of what these metrics actually mean for an investor's strategy. Our AI Investment Simulator directly solves this problem in app.py by combining live quantitative analysis with generative artificial intelligence. The application fetches live market feeds and performs the complex math of risk categorization and projection modeling, but crucially passes these outputs to a built-in Gemini AI financial advisor. The AI synthesizes the technical data into simple, plain-English comparative summaries, transforming intimidating market metrics into clear, actionable investment insights for everyday users.

Challenges we ran into

During development and deployment, we encountered key challenges around cloud API compatibility, configuration order, and UI stability. First, the hardcoded preview model was unsupported on public API endpoints, which we solved in ai_explainer.py by creating a dynamic fallback model chain starting with gemini-2.0-flash. Second, Streamlit Cloud secrets were not yet populated when the AI module initially imported, so we moved API key configuration to load dynamically at execution. Finally, to prevent UI freezes on failed network calls, we implemented a ten-second API timeout and resolved Git branch conflicts via rebasing, resulting in a robust, cloud-ready deployment.

Discussion

Builders also viewed

See more projects on Devfolio