Skip to main content
TensorFlow AWS

Stock Price Predictor

LSTM forecasting with Monte Carlo uncertainty bands, served serverlessly under 200ms.

Stock Price Predictor — ProjectsHub
87.3%
Direction Accuracy
<200ms
Serverless Latency
10yr
Training Data
4.7★
User Rating
Overview

What is this project?

A multi-layer LSTM architecture trained on 10 years of historical OHLCV data for 50+ equities. Technical indicators — RSI, MACD, Bollinger Bands, OBV — are engineered as additional features. Walk-forward validation prevents look-ahead bias, and Monte Carlo Dropout generates uncertainty quantification bands around each forecast. The entire model is packaged as an AWS Lambda function with a DynamoDB cache layer to serve repeat queries instantly.

The core challenge was keeping inference cold-start under 3 seconds while running a 4-layer LSTM on Lambda. This was solved by serialising the model to TorchScript, stripping unused weights, and using Lambda SnapStart. Cache hit rate on repeat tickers reached 78%, dropping average end-to-end latency below 200ms.

Architecture

System Diagrams

tes6
Architecture
tes6
Click to view full architecture
Process

Build Timeline

Phase 01 Sep 2025
Data Engineering & Feature Design
Fetched 10 years of OHLCV data via yfinance for 50 equities. Engineered 22 technical indicators and normalised with rolling z-score to prevent leakage.
Phase 02 Oct 2025
Model Training & Validation
Built 4-layer LSTM with dropout, ran walk-forward cross-validation, and implemented Monte Carlo Dropout for prediction intervals.
Phase 03 Oct 2025
Serverless Packaging
Converted model to TorchScript, stripped unused weights, and packaged for AWS Lambda. Implemented DynamoDB caching layer to serve repeat tickers instantly.
Phase 04 Nov 2025
API & Monitoring
Built REST API with API Gateway, added CloudWatch dashboards for latency and cache-hit tracking, and load-tested to 100 concurrent users.
Get This Project

What's Included

₹3,999
one-time payment · lifetime access
  • Full source code (training + Lambda function)
  • Pre-trained TorchScript model weights
  • AWS Lambda + API Gateway deployment template (SAM)
  • Feature engineering notebook with explanations
  • 45-minute video walkthrough
  • 30-day email support