Do you have an old Android phone gathering dust in a drawer? In this guide, we will transform it into a 24/7 automated investment assistant that tracks SEC filings, analyzes insider movements, and sends structured reports directly to your Telegram.
No paid services. No servers. No cloud costs. Just one phone, a few free API keys, and about 15 minutes of your time. Because when it comes to investing, every penny counts.
π Project Repository: https://github.com/authorturker/sec-analyzer-ai
⚙ How It Works
Whenever you send "Any news?" to your Telegram bot, the system automatically performs these steps:
π Fetches the latest 10-K, 10-Q, and 8-K filings from SEC EDGAR for your tracked companies.
π΅♂️ Scans for insider trading activity (Form 4).
π§ Analyzes every document using OpenRouter's free tier LLMs (like Llama 3.3 or DeepSeek).
π¬ Delivers a structured, investor-focused summary to your Telegram chat.
πΎ Caches processed files so you never see the same report twice.
π Prerequisites
π± Android Phone: Version 8.0 or higher.
π OpenRouter Account: Free tier (no credit card required).
π¬ Telegram Account: To receive reports and send commands.
π Step 1 — Install Termux
Termux provides a full Linux environment on Android. Important: Install the F-Droid version, not the Play Store version, as the latter no longer receives updates.
π Download F-Droid from f-droid.org.
π₯ Search for and install Termux within F-Droid.
π» Open Termux and run the following commands to set up Python:
pkg update -y && pkg upgrade -y pkg install -y python python-pip tmux pip install edgartools requests tzdata
π€ Step 2 — Create Your Telegram Bot
π¨πΌ Search for @BotFather on Telegram.
π Send /newbot and follow the instructions to get your Bot Token.
π Find @userinfobot and send /start to get your unique Chat ID. Note both down.
π Step 3 — Get Your OpenRouter API Key
Go to openrouter.ai, sign up for free, and create a key under Keys → Create Key.
⚡ Free Tier Benefits:
π Daily Requests: 50 per model (resets at 00:00 UTC).
π Context Window: Up to 128K tokens (perfect for long filings).
π€ Free Models: Llama 3.3 70B, Gemma 3, DeepSeek v3, and more.
π Step 4 — Get the Project
Clone the repository directly into Termux:
git clone https://github.com/authorturker/sec-analyzer-ai cd sec-analyzer-ai mkdir -p reports
π Step 5 — Configuration
Open the config file using the nano editor: nano config.py
Fill in the required fields:
EDGAR_IDENTITY: "Your Name yourname@email.com"
OPENROUTER_API_KEY: "your-sk-or-v1-..."
TELEGRAM_BOT_TOKEN: "your-bot-token"
TELEGRAM_CHAT_ID: "your-chat-id"
TICKERS: ["AAPL", "NVDA", "TSLA", "MU"]
π‘ Pro Tip: If you hit a rate limit, simply switch the model in config.py. Each free model has its own independent daily quota.
π Step 6 — Run and Test
Start the bot: python bot.py
✅ You should see "SEC Analyzer is online" on Telegram. Type "Any news?" in your bot chat to start the first scan.
π Step 7 — Keep It Running in the Background
To keep the bot active even after you close the Termux app, use tmux:
tmux new -s sec python bot.py
⌨ Press Ctrl+B, release, then press D to detach. To return to the session later, type: tmux attach -t sec.
π Analysis Example Output
π’ ASML — 10-Q π 2026-04-15
π Quarter Performance
π° Revenue: €7.7B (+16% YoY)
π Net bookings: €3.9B — below consensus
π Key Messages from Management
π EUV shipments on track for H2 acceleration
π¨π³ China revenue mix declining as expected
⚠ Notable Changes
π Gross margin slightly below guidance at 50.8%
π 3 Factors to Watch
High-NA EUV adoption timeline at major fabs.
China export restriction impact in the second half.
2026 order visibility and recovery pace.
❓ FAQ
What happens if I hit a rate limit? π The bot handles it gracefully and retries. Switch models in config.py for an immediate reset.
How many tickers can I track? π There is no hard limit. 20-30 tickers work perfectly fine.
What if my phone restarts? π Simply re-open Termux and run python bot.py inside your tmux session.
⚠ Disclaimer: This tool is for informational purposes only. Nothing it produces constitutes investment advice. Always do your own research.

0 Comments