Git Product home page Git Product logo

getroic's Introduction

getRoic

Collection of scripts to know the health status of a company and its fair value. It is based on the yfinance library.

  • Dividend Discounted Model
  • Discounted Cash Flow Model
  • Stock Picking Model, based on balance sheet multiples

Dependencies

  • selenium
  • pandas
  • numpy
  • yfinance
  • openpyxl
  • pyfiglet [not needed at the moment]

How it works

  1. Flowchart
  2. Excel File Settings
  3. Industry Table
  4. Selenium Settings
  5. Warnings

Flowchart

Below the flowcharts I followed to build the scripts

Excel File Settings

I have set up the excel file with these sheets: YNAME, DCF, MULTIPLI.

excel_sheets

Obviously you can modify them as you want, just remember to change the code.

All scripts take the names of the companies you have selected from "YNAME" sheet, python processes the data and then saves the results in the sheet set in the script.

Industry Table

balance-sheet-multiples.py script uses a csv exported from finviz.

Next you need to use text-to-columns function to split the text into columns.

At the end save the file in xlsx format and then you need to indicate the file path in the script.

Selenium Settings

For selenium settings download chromedriver.

I used two extensions. The first one to block ads and the second one to bypass cookie acceptance.

Take the crx files of these extensions and change the folder path in the script to the folder path where you stored them

Warnings

The project is still in a testing state, known issues are:

  • corrupted excel file after forced script closure [this does not always happen]
  • parameters taken from yfinance not available with some companies
  • please note that yahoo may prevent the page from loading due to too many queries. for this reason a timeout of 60s has been added. use a vpn if you think you will do a lot of queries

getroic's People

Contributors

gstru avatar

Watchers

 avatar

Forkers

kakustham

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.