A Python-based cloud automation script that monitors daily stock performance and sends SMS alerts via Twilio if there is a significant price change (greater than 5%).
This project is fully automated using GitHub Actions, running silently every day at 4:30 PM IST (11:00 UTC).
-
Live Stock Data: Integrates with the Alpha Vantage API to track daily market performance.
-
Market News: Fetches relevant company news headlines via the NewsAPI if the stock price moves significantly.
-
SMS Notifications: Utilizes the Twilio API to instantly deliver text messages to your phone.
-
Cloud Automation: Fully automated via a Cron job scheduled through GitHub Actions.
-
Language: Python 3
-
Libraries:
requests,twilio,os -
APIs: Alpha Vantage API, NewsAPI, Twilio SMS API
-
CI/CD / Automation: GitHub Actions (configured to run at 4:30 PM IST daily)
You will need free API keys for the following:
-
Alpha Vantage (
STOCK_API_KEY) -
NewsAPI (
NEWS_API_KEY) -
Twilio (
TWILIO_ACCOUNT_SIDandTWILIO_AUTH_TOKEN)
Ensure you have your environment variables set, then: