I really want to write about my first year of trading since it is ending soon next week. However, I guess I will leave it to next Weekend. As I said in my previous post, I will probably lose a lot. That’s why today, I want to talk about something different, and it is my automation machine.
My machine has three tasks every day:
- Update WoWs Info API
- Load Manga Update
- Check WoWs update & build data based on it
The Manage update one won’t be open source, but I am happy to share what I am doing with the machine.
The WoWs Info update is simple. It simply runs the personal_rating.py
from code. This gets the latest data for the app to function. The Manage Update gets information from a website. Then, it will read the data with a delay and publish it somewhere. This one is the most time-consuming one because of the delay. Lastly, it runs run.py
from scripts. Once everything is done, all changes will be pushed to GitHub and an email will be sent to me. This week, I improved the email function to send the latest log in case something goes wrong.
However, running those tasks is not as straightforward as it may seem because there should be something running them and handling any potential errors. Yeah, there is some sort of system on top.
For me, the machine should do the following every day:
- Boot up automatically at 9:55 AM
- Start the automation system
- Wait for the timeout in case it is booted up manually
- Run all tasks in parallel
- Wait for all tasks to complete
- Check if there is any error
- Send the email
- Shutdown the machine
So far, it has been working for more than a year. I am extremely happy with this because you don’t have to do all of those manually every day. I always want to work very hard once and can enjoy my work for years to come.
Next step, I want to add my trading as part of this system. There is zero conflict because these tasks start at 10 AM. The market starts at 11:30 PM or maybe 10:30 PM, and it will end before 8 AM I believe here in Australia. Then, it can wait until 9 AM to do all the updates.
If only that’s possible… It will be a major milestone for me years ahead. If I can really do it, I will be more than happy to share it with everyone. I don’t believe it has any value to be honest even if my system can be profitable.
Well, I still don’t see if happen anytime soon, take my words as a joke, lol.