Stocks

Stock Bot

Project URL: https://stocks.salonek.org/bot

My first idea was to train an AI that could predict stock prices, but that is something so random that no AI can precisely do that to this day. I just ended up with a model predicting prices from the day before (cheeky from him :P). At this point (early 2024) I was still learning about how the stock market works and this project actually helped me a lot. I started with some basic indicators that could tell me if company financials were healthy. And there was born the first version of my stock viewer. It was just a for loop over 10,000 tickers which filtered out the unhealthy companies. In the summer of 2024 I contributed with quite a substantial pull request to the popular library yfinance. This also allowed me to improve my viewer with analyst value estimates. I also improved the algorithms and created a simulated portfolio for my first stock bot. The stock bot is actually very simple, it just buys undervalued stocks (based on analysts) and sells them when they are fairly- or over-vaued. Last improvements I made were around early spring 2025 where the bot also bought more if the price dropped more (basically DCA on steroids). At that point we all remember the Trump tariff market drop. My bot actually managed to beat the S&P 500 by quite a good margin. Unfortunately I reached a roadblock when I got banned for overusing the API. I searched hard and couldn't find any API that comes even close to the one yfinance uses for free. So that is where the project is now – on hold.