Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Get SMS Notifications of changes in Stock Market with Python

Notifications You must be signed in to change notification settings

CITIZENDOT/Stocks-with-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Trade Stocks with the help of Python CodeFactor

Stocks-with-Python

Introduction

Ever Thought of Buying Shares of your Dream Company, When their share price got down? But It is not that simple, to keep looking at stock prices all the time for the whole Business Week. Right?

And Also, If that particular company is reliable, Then that Low price wouldn't last long enough(atleast even for 1 day)

So, You want to get notified very fastly, whenever the stock is lowered down than a particular value.(Threshold)

This script helps you exacty in that situation.

Regarding Sources of the Script

  • This Script gives the share price according to MoneyControl Website.

  • This Script uses FAST2SMS API to send SMS to your Mobile Phone. FAST2SMS is not a free SMS service, But still It had attractive features for new subscribers. It gives ₹55 as bonus credit. And It charges as less as 20 paise for each SMS. So, I recommend to use this API.

Code Construction

Install bs4 from pip package.

pip3 install bs4

url

Open MoneyControl Website and search for your desired company. Now change the value of "url" variable(in the code) to URL of the page.

API_KEY

Change the "API_KEY" variable to your FAST2SMS API Key.

It can be found here Only If you logged in.

mobile_no

Change this variable to your Mobile Number to recieve SMS Notifications.

threshold

Remember that Threshold in Introduction? Change it with that value.


You are ready to go!

Run this program on a mobile phone or server continuously to monitor stocks realtime. The program will do the work for you.

You can get rid of print statements by commenting them.

python3 main.py

Screenshots

Example:

Company: Reliance Industries Threshold: ₹1000

On Working Days(Monday to Friday): Normal Working Day

Consider It has reached less than or equal to threshold Value: I am changing Threshold to ₹1600

Recieved the Message

And, Here is the Message

Message

On Weekends(Saturday and Sunday):

On Holdays

Don't Forget to star this repository.

Releases

No releases published

Packages

No packages published

Languages