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.
-
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.
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
Example:
Company: Reliance Industries Threshold: ₹1000
On Working Days(Monday to Friday):
Consider It has reached less than or equal to threshold Value: I am changing Threshold to ₹1600
And, Here is the Message
On Weekends(Saturday and Sunday):