Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Stock Price Notifier using Twilio SMS

This script fetches the latest stock prices from Yahoo Finance and sends the information via SMS using Twilio. You can customize the stocks to monitor and receive real-time stock updates on your phone.

Features

  • Fetches stock prices from Yahoo Finance using pandas_datareader.
  • Sends SMS notifications through Twilio.
  • Easily customizable stock symbols and phone numbers.

Requirements

  • Python 3.7+
  • A Twilio account (for sending SMS)
  • Twilio credentials (account SID, auth token, Twilio number)
  • Internet connection

Installation

  1. Clone the repository:
git clone https://github.com/UmanSheikh/Stock-Alert.git
  1. Navigate to the project directory:
cd Stock-Alert
  1. Install the required Python packages:
pip install pandas_datareader twilio

Configuration

  1. Sign up for a Twilio account and get your Account SID, Auth Token, and Twilio phone number.
  2. Edit the send_sms function in the script and replace the following with your credentials:
    • account_sid = "Your ID From Twilio"
    • auth_token = "Auth Token From Twilio"
    • sending = 'Twilio Number'
    • reciving = 'Your Recinving Number'

Usage

  1. Run the script:
python script.py

The script will fetch stock prices of the listed companies and send them via SMS.

Customization

  • You can change the stock symbols to monitor by editing the stocks list in the main() function:
stocks = ["AAPL", "JPM", "GOOGL", "SBUX"]

Simply add or remove stock symbols as per your needs.

About

This script fetches the latest stock prices from Yahoo Finance and sends the information via SMS using Twilio. You can customize the stocks to monitor and receive real-time stock updates on your phone.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages