GithubHelp home page GithubHelp logo

deepakbharani / stock_valuation_bot Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 2.0 5.48 MB

This helps to calculate fair value of a stock based on Discounted Cash flow analysis by accessing their financial statements stored as a .txt file

License: GNU General Public License v3.0

Python 100.00%
stock-valuation-bot stock financial-data

stock_valuation_bot's Introduction

Stock_Valuation_Bot

This project is developed to create an efficient and conservative "Stock Valuation Bot" which uses the financial data in the form of .txt (typically copy pasted from yahoo finance) to derive a fair value of the stock.

In this example Apple(AAPL) stock is valuated

Further Optimisation in collecting financial data are tried to be accessed using yfinancial module

Base.py

Base.py is the base class which reads the financial statements as .txt files and formats the data to create a data frame which can be used for further analysis

Base.Py class has a method "variablefunction" where the variables are assigned with financial data. New variables must be defined here to use them later in the code

LiquidityRatio.py

This Subclass helps to calculate the Liquidity ratios such as

  • Current Ratio
  • Cash Ratio
  • Operating Cashflow Ratio, with the data which are now available as a dataframe from Base class method 'listformatter' LiquidityRatio Graph

SolvencyRatio.py

This Subclass helps to calculate the Solvency ratios such as

  • Debt to Equity Ratio
  • Interest Coverage Ratio SolvencyRatio Graph

ProfitabilityRatio.py

This Subclass helps to calculate the Profitability ratios such as

  • Return on Assets (ROA)
  • Return on Equity (ROE)
  • EBITDA Margin
  • Net profit Margin
  • Operating Income Margin ProfitabilityRatio Graph

DCF.py

This Subclass performs Discounted Cashflow valuation analysis by accessing the yahoo finance stock related data using yfinance module. To Valuate a different stock the Variable "self.stock_ticker" must be adjusted.

Result.py

Result.py is a class to write the valuations into a pdf file

Plotter.py

A Class which is to plot the results from calculations and the data

logfile.log

Log file

stock_valuation_bot's People

Contributors

deepakbharani avatar

Stargazers

Evgeny Gavrin avatar Timothy avatar Riccardo Tinivella avatar

Watchers

 avatar

Forkers

p0p0p0

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.