Git Product home page Git Product logo

stockanalyzer's Introduction

stockanalyzer

This is a Python code that defines a class called StockAnalyzer which can be used to analyze stock data for a given company.

The class has several methods that allow for data retrieval and plotting.

The init method takes in a ticker parameter which represents the ticker symbol for the desired company.

The get_google_finance_data method retrieves the current stock price and change in price from Google Finance for the given ticker symbol.

The get_yahoo_finance_data method retrieves the historical stock data for the given ticker symbol from Yahoo Finance, starting from the provided start_date.

The get_major_shareholders method retrieves a list of major shareholders for the given company from CNN Money.

The get_board_of_directors method retrieves a list of members of the board of directors for the given company from CNN Money.

The plot_stock_price method uses the get_yahoo_finance_data method to retrieve historical stock data and plots the adjusted close price over time starting from the provided start_date.

Lastly, the code creates an instance of the StockAnalyzer class for the Apple company with ticker symbol "AAPL", retrieves and prints the current stock price and change, retrieves and prints the major shareholders and board of directors, and plots the historical stock price starting from January 1, 2020.

stockanalyzer's People

Contributors

jish123k 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.