Skip to content

Monitor the stock market and get email notifications for trading stocks.

Notifications You must be signed in to change notification settings

mustang519/STOCK-MARKET-PRICE-TRACK-AND-ALERT-SYSTEM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Stock Market Price Tracking cum Alert System

This is a useful stock market price tracker system , where you can monitor the stock prices and set up the threshold values of various companies where you want to trade stocks. !!!!!

Screenshot (203)

Table of Contents
  1. About The Project
  2. PriceTracker.py
  3. Chrome Web Driver
  4. PriceData.csv
  5. PricePlotter.py

About The Project

This is a python based stock market price monitoring system that tracks the price variation of various companies with real time and archives the data in a .csv file. There is also an email notification system that immediately sends an alert to the user when the price falls below or exceeds a certain threshold , depending on whether the user wants to buy or sell stocks. This system can be useful for a stock market trader to monitor price fluctuation of various companies and invest in the stocks.

PriceTracker.py

  • This is a python code to extract real time stock price data from Yahoo Finance by web scrapping with Selenium and BeautifulSoup libraries .
  • Firstly the user is required to give the code of the companies to track and a threshold value. All this information for each company (stock price at that time instant) gets saved in a .csv file.
  • Then depending on whether the trader wants to buy or sell stocks , if the current stock price falls below the threshold price (when he wants to buy stocks ) or the current stock price exceeds the threshold price (when he wants to sell stocks) , an email notification is sent to the trader's gmail account. This is achieved using the smptlib and ssl libraries.
  • Libraries used :-
    • BeautifulSoup - web scraper to scrape data out of Yahoo Finance HTML file.
    • html5lib - web parser to parses the html content of the web page into meaningful blocks.
    • Selenium - scrapes dynamically generated web page.
    • smptlib - defines a SMTP client session object to send mails to any internet machine with SMTP or ESMTP listener daemon.
    • ssl - protocol to encrypt/secure connection between machines. Create an unencrypted connection and upgrade it to an encrypted one.
    • datetime - gets the current time when the stock price data is being scraped. Screenshot (204)

Chrome Web Driver

This is required by Selenium framework to interact with the web browser or a remote web server through a wire protocol. Here chrome web driver is used. Link for installation : Click here.

PriceData.csv

This file stores stock prices against their current time instant , for every company the user wants to track. Screenshot (220)

PricePlotter.py

This file plots the real time stocks price against their current time instant. This helps to visulaize how the stock price varies for a company , that gives better insight to the trader who wants to invest in that company. Screenshot (218)

About

Monitor the stock market and get email notifications for trading stocks.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages