Stock Analysis Bot

Tell me what I need to know

Updated: 20250508 - Added crypto to the morning digest.

This week I wrote a bot that scrapes a popular stock news aggregating site, filters for stocks in my portfolio, then dumps the results into an RSS feed and a text file that maintains the last seven days worth of news.

Another script grabs the news entries, compares it to my current portfolio, and pings a self-hosted LLM (Llama3.3). The AI will churn on it for a bit, then spit a formatted message into Slack on what I should be concerned about for the day.

StockBot

As you can see by the picture, it gives me a personalized “morning digest” when I have a cup of coffee in hand and am ready to look at market stuff.

Eventually this’ll get honed into a personalized stock trading bot. All that’s needed is a connection to a broker API (with guardrails). The messages from that point will be less news-focused, and more “I traded {ticker} and have earned/lost {value}.”

Automation is not about shoving more data in your face, but instead having the work done for you and seeing results.

I’d post the Python, but the news site doesn’t exactly know I’m scraping their site. However, if you would like to know how to utilize a self-hosted LLM like this, I’d be more than happy to chat. No n8n here. Just straight Python.

Questions or comments?

Previous: 3D Printed Picture Frames Next: Moisture Extractors