GithubHelp home page GithubHelp logo

fundamentalanalysis's Introduction

Fundamental Analysis with Yahoo Finance and Python

This program is a Python implementation of fundamental analysis using financial data from Yahoo Finance. It includes a class called FundamentalAnalysis that can be used to perform fundamental analysis on a stock using historical stock price data from Yahoo Finance.

Getting Started

To use this program, you will need to install Python and the required Python packages. You can install the required packages using the following command:
pip install -r requirements.txt
You can then run the program using the following command:
python main.py
By default, the program will perform fundamental analysis on Apple Inc. (AAPL). You can specify a different stock symbol by passing the stock symbol as a command line argument, like this:
python main.py

Class Usage

To use the FundamentalAnalysis class in your own Python programs, you can import the class from the FundamentalAnalysis.py file, like this:

from FundamentalAnalysis import FundamentalAnalysis

# Create a FundamentalAnalysis object for a stock
fa = FundamentalAnalysis('AAPL')

# Clean and process the data
fa.clean_data()

# Analyze the data
metrics = fa.analyze_data()
print(metrics)

# Create visualizations
fa.visualize_data()
This will create a FundamentalAnalysis object for Apple Inc. (AAPL), clean and process the data, analyze the data, and create visualizations.

Docker Usage

You can also use Docker to run the FundamentalAnalysis program in a containerized environment. To do this, you can build a Docker image using the provided Dockerfile, like this:
docker build -t fundamental_analysis .

You can then run the Docker container using the following command:

docker run -it -e STOCK_NAME=AAPL fundamental_analysis
This will build the Docker image and run the FundamentalAnalysis program for Apple Inc. (AAPL) inside the Docker container. You can specify a different stock symbol by changing the value of the STOCK_NAME environment variable.

fundamentalanalysis's People

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.