Skip to content

adityachache/stock-trading-notification-alert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

stock-trading-notification-alert

sends you an sms when the stock price of the company that you want goes above or below a certain percentage(which you can set).

Screenshot

HOW TO USE THE SCRIPT

  1. Go to Alphavantage.co and get your free api key and paste that key on line 10 in main.py
  2. Go to newsapi.org and get your api key and paste it on line 12 in main.py
  3. Go to twilio.com and sign up to get your ACCOUNT_SID, AUTH_TOKEN, TRIAL_NUMBER.
  4. Paste these 3 things on lines 15, 16, and 17 respectively in main.py.
  5. Enter your current phone number which you used while signing up for twilio on line 20
  6. If you want to change the name of the stock you can change it on line 5 but be sure to also change the company name on line 7 to get appropriate news.

if you want to receive sms alerts on a different phone number you'll need to verify it with twilio first you can do that by going to your twilio dashboard and clicking on verified numbers and adding your phone number(otp will be sent for verification)

image

if you want to change the percentage of increase/decrease of the stock (default is 1) you can do that by changing the number on line 52 in the if statement

image

You can automate this script using pythonanywhere

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages