1. Introduction to Lambda and its advantages over EC2
2. How to install packages in Lambda
3. Using Chartink + Lambda for Strategy Automation
4. Creating an API
5. Creating Cronjobs in Lambda
| Price | |
|---|---|
| Requests | $0.20 per 1M requests |
| Duration | $0.0000166667 for every GB-second |
AWS Lambda
Average trading days: 21 * 6 hour/day = 126 hours
Average runtime: 800 ms ~1sec
126 hours= 126*3600 = 4,53,600 seconds
(126*3600*128)/1024 = 56,700 GB-seconds
56,700 GB-s - 400000 free tier GB-s = -343,300.00 GB-s
Lambda costs - With Free Tier (monthly): 0.00 USD
Let's do the maths
| Number of Requests (per month) | Price (per million) |
|---|---|
| First 300 million | $1.00 |
| 300+ million | $0.90 |
Creating webhook endpoint using API Gateway
A rate expression starts when you create the scheduled event rule, and then runs on its defined schedule.