Skip to content

Created a Python script that sends real-time stock price updates via text message. The script fetches data from a financial API, calculates the percentage change, and sends notifications with the price and change when executed.

Notifications You must be signed in to change notification settings

ShamellJordan/Python-Stock-Price-Notification-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Python Stock Price Notification System

This Python script fetches real-time stock price data and sends it via text message, along with the percentage change compared to the previous day's closing price.

Installation

  1. Clone this repository.

  2. Install the required libraries using pip:

    pip install yfinance twilio or add manually
    
    Set up a Twilio account and obtain your Twilio SID, Auth Token, and phone numbers. Replace 'YOUR_TWILIO_SID', 'YOUR_TWILIO_TOKEN', 'YOUR_TWILIO_PHONE_NUM', and 'YOUR_PHONE_NUM' in the code with your own credentials.
    run the script 
    

Usage

import yfinance as yf from twilio.rest import Client from datetime import datetime, timedelta

Features

Fetches real-time stock price data using Yahoo Finance (yfinance).
Calculates the percentage change compared to the previous day's closing price.
Sends a text message with the stock price and percentage change using Twilio.

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
You can further customize and expand this README to include additional details, such as explanations for how to customize the stock symbol, set up Twilio, or modify the notification messages.

About

Created a Python script that sends real-time stock price updates via text message. The script fetches data from a financial API, calculates the percentage change, and sends notifications with the price and change when executed.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages