Building a Stock Scoring Engine Without Writing Code
How I built an automated stock analysis platform using AI "vibe coding" tools — without writing a single line of code myself.
By Vincent Grunte
Project Overview
What is Gruntech Invest?
Gruntech Invest is an automated stock analysis platform that scores over 7,000 US stocks using a systematic, data-driven approach. Instead of relying on gut feelings or tips from friends, this system analyzes financial fundamentals, calculates an objective score (0-100), and uses AI to explain the results in plain English.
The goal: Help everyday investors (like my classmates or parents) understand which stocks might be worth researching further — without needing a finance degree.
The Challenge
Most stock analysis tools are either too complicated (Bloomberg terminals cost $20,000/year) or too simplistic (just showing price charts). I wanted to build something in between: powerful enough to be useful, but simple enough that anyone could understand it.
The Solution
A simple two-layer scoring system:
- Classic Investor Factors: All 7,000+ stocks are scored using 6 proven investment factors (quality, health, value, growth, sentiment, momentum) — the same factors used by professional investors.
-
AI Scoring (Top 20): The highest-scoring 20 stocks get a full AI
analysis from Claude. The AI provides:
- Its own score (0-100) — an independent AI assessment
- Conviction level — how confident the AI is
- Buy/Sell signal — Strong Buy, Buy, Hold, Sell, Strong Sell
- Bull & Bear cases — best and worst scenarios
- Plain-English explanation — for beginners
- Earnings surprise analysis — warns if the company missed expectations
- Cyclicality warnings — flags if profits might be at peak cycle and unsustainable
The final "Combined Score" blends classic analysis (70%) with AI judgment (30%) — getting the best of both: data-driven precision plus AI's ability to see the bigger picture.
How I Built It
The secret? I didn't write a single line of code myself. I used AI "vibe coding" tools to build everything by describing what I wanted in plain English.
🤖 Zero Code Written — Just AI "Vibe Coding"
This entire project was built using Cursor and Kiro — AI-powered coding tools that let you build software by having a conversation. I described what I wanted, and the AI wrote all the code.
🎯 The Key Insight
I have not written a single line of code. Everything — the backend, frontend, database queries, AWS infrastructure, and even this website — was generated by AI based on my descriptions and requirements.
What is "Vibe Coding"?
Instead of learning programming languages and syntax, I had conversations with AI tools:
- "Create a system that fetches stock data and scores them based on quality factors"
- "The page is loading too slowly, can you optimize it?"
- "Add AI explanations for the top stocks so beginners can understand them"
- "Deploy this to AWS and set up automatic weekly updates"
The AI understood my intent and generated the code, fixed bugs, and even deployed everything to the cloud.
Tools I Used:
Cursor
AI-powered code editor. I describe what I want, and it generates Python, JavaScript, and infrastructure code automatically.
Kiro
Another AI coding assistant. Works alongside Cursor to help debug issues and understand complex systems.
💡 What I Learned
You don't need to memorize programming syntax to build real software. With AI tools, you focus on what you want to build and why — the AI handles the how. But you still need to understand the concepts: databases, APIs, cloud infrastructure, and how systems connect together.
☁️ Deploying to AWS (Real-World Cloud)
This isn't just a school project running on my laptop — it's a production system deployed on Amazon Web Services (AWS), the same infrastructure used by Netflix, Airbnb, and NASA.
Why AWS?
- Scalability: Can handle 7,000 stocks now, could handle 70,000 with minimal changes
- Reliability: AWS has 99.99% uptime guarantees (better than my laptop!)
- Cost-Effective: Pay-per-use model means I only pay for what I use (~$10/month for this project)
- Industry Standard: Learning AWS is a valuable career skill
AWS Services I Used:
Lambda
Serverless compute — runs my Python code without managing servers. Perfect for the scoring engine and API.
DynamoDB
NoSQL database — stores stock data, scores, and price history. Scales automatically and super fast.
API Gateway
RESTful API — exposes endpoints for the frontend to fetch data (e.g., /stocks/top10).
S3 + CloudFront
Static hosting + CDN — serves the website globally with low latency and caching.
Bedrock
AI service — accesses Claude (Anthropic's AI) to generate stock explanations in plain English.
EventBridge
Scheduler — triggers the weekly data refresh every Saturday at 2 AM UTC automatically.
System Architecture
How all the pieces work together to analyze 7,000 stocks every week
Weekly Data Refresh
Every Saturday at 2 AM UTC, EventBridge triggers the orchestrator Lambda. It divides 7,000 stocks into batches of 50 and starts fetching financial data from Alpha Vantage.
Data Ingestion
Worker Lambdas fetch fundamentals (P/E ratio, revenue, debt, etc.) and store them in DynamoDB. This takes ~3-4 hours with rate limiting to respect API quotas.
Algorithmic Scoring
Scoring engine analyzes each stock across 6 factors (quality, health, value, growth, sentiment, momentum), calculates a weighted score (0-100), and generates a recommendation (BUY/WATCH/RISK).
AI Scoring (Top 20)
For the top 20 stocks, Claude AI acts as a second analyst. It reviews all the financial data and generates its own score (0-100), plus conviction levels, buy/sell signals, and beginner-friendly explanations.
Combined Score
The final score = 70% algorithmic + 30% AI. This gives you data-driven precision from the classic factors, plus nuanced judgment from the AI that can see patterns humans might miss.
User Access
Users visit the website, which calls API Gateway to fetch the latest scores and explanations from DynamoDB. CloudFront caches static assets for fast loading worldwide.
🔒 Design Decisions
Why serverless? No servers to manage, auto-scales, and I only pay
when code runs. Perfect for a weekly batch job + occasional API calls.
Why DynamoDB? Fast key-value lookups, no schema migrations, and
scales to millions of records without performance degradation.
Why Claude? Generates better financial explanations than GPT models I
tested, and AWS Bedrock made integration easy.
Technology Stack
Backend (Python)
All the data processing, scoring logic, and AI integration is written in Python. Why Python?
- Great libraries for finance (NumPy, Pandas)
- Easy to read and debug
- Native AWS Lambda support
- Cursor AI excels at Python
Frontend (Vanilla JavaScript)
The website is built with pure HTML, CSS, and JavaScript — no complex frameworks. This keeps it fast, easy to understand, and perfect for learning.
- Responsive design works on mobile and desktop
- PWA (Progressive Web App) support for installing on phones
- Chart.js for price history graphs
- Hosted on S3 + CloudFront for global CDN
Infrastructure as Code (Terraform)
Instead of manually clicking through AWS console, all infrastructure is defined in Terraform code. Benefits:
- Reproducible — can recreate entire system from code
- Version controlled — track changes over time
- Testable — deploy to test environment first
- Documented — code describes the architecture
Data Sources
Financial data comes from Alpha Vantage, a free API that provides:
- Company fundamentals (revenue, earnings, debt, etc.)
- Financial ratios (P/E, P/B, ROE, etc.)
- Price history (for charts)
- Covers 7,000+ US stocks
What I Learned
Key Takeaways
- You don't need to know how to code — AI tools like Cursor and Kiro can generate all the code from your descriptions
- But you do need to understand concepts — how databases work, what APIs are, how cloud infrastructure connects together
- Break big problems into small pieces — I didn't build this all at once; I started with one stock, then 10, then 7,000
- Ask lots of questions — the more specific your questions to the AI, the better the results
What I Learned About Investing
- Financial Statements: Balance sheets, income statements, and cash flow tell the story of a company's health
- Valuation Metrics: P/E ratios, P/B ratios, and ROE help determine if a stock is cheap or expensive
- Risk Indicators: Piotroski F-Score, Altman Z-Score, and Beneish M-Score help identify risky or potentially fraudulent companies
💡 The Most Important Lesson
Anyone can build real software without writing code. I'm not a programmer. I just had an idea, described it clearly to AI tools, and kept refining until it worked. The future of building software is about what you want to create, not memorizing syntax.
Challenges & Solutions
Challenge 1: API Rate Limits
Problem: Alpha Vantage free tier limits to 25 requests/day. I needed to fetch data for 7,000 stocks.
Solution: Implemented a tiered ingestion strategy — prioritize high market-cap stocks, add delays between requests, and spread the refresh over 24 hours.
Challenge 2: Data Inconsistencies
Problem: Some stocks had percentage values as decimals (0.15), others as whole numbers (15), causing wildly incorrect scores.
Solution: Built normalization functions to detect and standardize data formats before scoring. Added validation checks and confidence indicators.
Challenge 3: Cold Start Times
Problem: Lambda functions took 3-5 seconds to start when not recently used, making the API feel slow.
Solution: Added CloudFront caching for static assets, optimized Lambda package size, and implemented database query optimization with Global Secondary Indexes.
Challenge 4: Cost Control
Problem: AWS can get expensive if not managed carefully.
Solution: Used serverless architecture (pay-per-use), set billing alarms, optimized database queries, and implemented caching. Total cost: ~$10/month.
Future Improvements
Short-Term (Next 3 Months)
- Add international stocks (UK, Europe, Asia)
- Implement user accounts and watchlists
- Add email alerts for score changes
- Mobile app (React Native)
Long-Term (Next Year)
- Backtesting engine to validate scoring methodology
- Machine learning to improve AI scoring accuracy
- Community features (share stock ideas, discuss)
- Premium tier with real-time updates
🚀 Want to Contribute?
This project is open-source on GitHub. If you're learning to code or interested in finance, feel free to contribute! Check out the GitHub repository.
The Future of Building
AI Changes Everything
A few years ago, building something like this would have required years of coding experience and a team of developers. Today, with AI "vibe coding" tools, a high school student can build a production-quality system in weeks.
This isn't just about stock analysis. It's about a future where anyone with an idea can build software — without needing to learn programming languages first.
The barrier to creating technology is disappearing. What will you build?