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
 

Keep Current with Kanhai Chhugani

Kanhai Chhugani Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!

:(