Git Product home page Git Product logo

stock-news's Introduction

Stock News

Overview

This Python project fetches stock data and news articles related to a specified company and sends SMS alerts via Twilio when there is a significant change in the stock price. It utilizes APIs from Alpha Vantage for stock data, News API for news articles, and Twilio for SMS messaging.

Features

  • Fetches daily stock data from Alpha Vantage API.
  • Retrieves news articles related to the specified company from News API.
  • Sends SMS alerts via Twilio when the stock price change exceeds a specified threshold.
  • Utilizes environment variables for API keys and endpoints for enhanced security.

How the Project Works

  1. Retrieves daily stock data for a specified company using the Alpha Vantage API.
  2. Calculates the percentage difference in the stock price between two consecutive trading days.
  3. If the percentage difference exceeds a specified threshold (e.g., 5%), fetches news articles related to the company using the News API.
  4. Sends SMS alerts via Twilio with the headline and brief description of the top news articles.

Installation Guide

Clone the Repository

git clone https://github.com/Manjunathhs-0003/Stock-News
cd Stock-News

Usage

  1. Set up environment variables for the required API keys and endpoints.
  2. Run the Python script main.py.
  3. python main.py

APIs Used

  • Alpha Vantage:
    • Endpoint: Alpha Vantage
    • Documentation: Navigate to the Alpha Vantage website, sign up for an account, and obtain the API key from the dashboard or API section.
  • News API:
    • Endpoint: News API
    • Documentation: Visit the News API website, sign up for an account or log in, and obtain the API key from the dashboard or API section.
  • Twilio:
    • Endpoint: Twilio
    • Documentation: Go to the Twilio website, sign up for an account, obtain the Account SID and Auth Token from the dashboard, and set up a virtual phone number.

stock-news's People

Contributors

manjunathhs-0003 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.