/HW_cycle

Program for creating a most profitable and reliable financial portfolio for a long term income.

Primary LanguagePython

Best Financial Portfolio Creator

About the project

This project is created for those people who want to generate a passive income or invest their money into world currencies, corporations and stocks. Based on your preferaces and collected/analyzed data, Financial Portfolio Creator generates you a most reliable and profitable collection of stocks for you to invest in. Using this program, you will get a stable yearly income.

Wiki content

  1. Опис проблеми
  2. Web blog analysis
  3. ДЗ-2
  4. ДЗ-3
  5. ДЗ-4
  6. ДЗ-5

Table of content

  1. Instalation and requirements
  2. Program exploitation
  3. Input and Output data
  4. Project Structure

Instalation and requirements

- Download the project

You can clone this project from repository executing this command for your local git repository
$ git clone https://github.com/dlutchyn/HW_cycle

or you can manually download the Zip of this project to your pc.

- Installing requirements

One way to install requirements for this project is to get them from requirements.txt You need to execute this command in Terminal (you need to execute it from the root directory of the project):
pip install -r requirements.txt

Another way to install all requirements is to execute the following command:

pip install pandas, matplotlib, flask, yfinance, numpy

- Run the program

Write:
python flask_app.py

Program exploitation

- Welcome page

Start creating your financial portfolio

- Creating portfolio

  • Select stocks you would like to invest in
  • After that type in the number of stocks you are ready to invest (the size of your portfolio)
  • Type in the number of days you want the analysis to be held on (the more, the more accurate the analysis will be)
  • Submit

- Results

View your results

Input and Output data

The input data is the number of stocks you are willing to invest in (the size of your financial portfolio) and the numer of days you want to have an analysis for (the more days, the more accurate the analysis will be) You also check the boxex of the preferable stocks for investing.

Project Structure

Modules

  • getter_data.py - module that gets stock data from the csv files
  • processor.py - module that processes all information about stocks from yfinance and analyzes it
  • stock_plotting.py - module that plots graphics with analyzed information

Structures

  • arrays.py - module with implemented Array ADT
  • stock_adt.py - module with implemented Stock ADT
  • stock_analyzer.py - module with implemented StockAnalyzer ADT

External Libraries

  • yfinance
  • numpy
  • pandas
  • flask
  • matplotlib