This project is a modular, event-driven trading automation system built entirely on AWS serverless infrastructure. The system ingests real-time data, evaluates strategy conditions, and places trades in a scalable, secure, and cost-efficient environment. It is designed to execute trades based on dynamic market conditions without the need for persistent servers or manual oversight.
The system is composed of multiple independently deployable AWS Lambda functions, each designed with single-responsibility principles. These functions communicate via JSON payloads, enabling clean modularization and stateless execution. Core Lambda workflows include:
Sensitive data and configuration variables—such as API keys, thresholds, and quantity tiers—are stored securely in AWS SSM Parameter Store. This allows for:
A central DynamoDB table stores historical trade data, including:
A Global Secondary Index (GSI) enables real-time filtering and enforcement of trade constraints like "max 4 shares per month per stock."
To avoid code duplication, a custom Lambda Layer includes:
All trade decisions and system events are logged to Google Sheets using a webhook-style endpoint. This provides:
Market data is pulled on-demand via secure API calls within Lambda functions. These requests are stateless and triggered only during active trading windows, optimizing costs and performance.