How I have automated my #algotrading and spend less than ₹10 to execute it monthly. This is running on #AWS
Thread 👇
1. use Python to execute the #algo 2. commit the #algo files in a git repo - I use GitHub (you can use anything else)
3. Use AWS Lambda to start and stop the AWS ec2 small instance (I will switch to AWS Fargate later) 4. Pull the latest code from git. 5. Server starts at 9am - auto-login 6. starts data service by 9.15am and start collecting data for signal generation 7. Wait for Signal
8. Log everything in a log file. 9. All positions and PNL are logged every minute to the Dynamodb database. (This helps to understand what happened through the day) 10. close all positions at 3.14pm - send PNL on telegram 11. upload all log files to AWS s3 for review.
12. Shutdown and terminate AWS ec2 instance at 4pm. 13. I have a Nuxt App (Vuejs app) deployed on AWS s3 and CloudFront to read data from Dynamodb to see reports and run queries. 14. All new positions and exits are sent to me by telegram for observation and notification.
This took me about 1 month to design every aspect of it and ran and tested it for the last 2 months. so far found a few issues and resolved them.
I may open source in the future and provide a setup script for auto deploy this setup for your execution.
• • •
Missing some Tweet in this thread? You can try to
force a refresh