StanQuant is a full-stack web platform for designing, uploading, and evaluating stock trading algorithms on millions of rows of historical data.
Built to empower both beginner and experienced traders, this system provides a secure and scalable environment to validate the logic and performance of your strategies before risking real capital.
As an undergraduate Computer Science student at the University of Waterloo, I created this project to solve a personal need — I wanted a place to test my own trading scripts using real, large-scale financial data with flexibility and safety.
This app lets users:
- Upload or create algorithmic trading strategies
- Evaluate them using detailed statistical backtesting tools
- Store, preview, and compare results for better decision-making
- Frontend: Next.js + TailwindCSS
- Backend: Django + Django REST Framework
- Data Processing: Apache Spark (PySpark), Pandas, NumPy
- Database: AWS RDS (PostgreSQL) with SQLAlchemy ORM
- Script Execution: Kubernetes Jobs on AWS EKS with Dockerized workloads
- File Storage: Amazon S3 (managed via
boto3) - Security: All uploaded user files run inside isolated containers with timeouts, resource caps, and no external network access
- Upload
.pyscripts containing a single strategy function (def your_algo(df)). - Must return a
listorarrayof Buy/Sell/Hold signals matching the length of the DataFrame. - Uploaded files are validated before execution.
- Each user-uploaded script is executed in a sealed Kubernetes container using AWS EKS.
- The job fetches historical stock data from AWS RDS, runs the algorithm, and stores output results back to S3.
- Evaluations run on minute-level historical stock data (millions of rows per test).
- Uses PySpark and Pandas for fast, scalable processing of time-series indicators, rolling windows, and deciders.
- Users input metrics like:
- Gain & Loss thresholds
- Intercept Ranges
- Clean conflict filtering
- Position duration
- Algorithms can be combined and tested for consensus agreement.
To access a comprehensive walkthrough of the platform, view the Loom video demo:
- Website: https://stanquant.com
Note: Backend deployment currently paused, please contact me.


























